Mark van Renswoude
ba58eb93c0
- Button library - State handling and transitions - Default state: dual counter display - User unknown state: static for now - Lost the game state: static for now
44 lines
611 B
C
44 lines
611 B
C
#ifndef NerfStatTrekConfig_h
|
|
#define NerfStatTrekConfig_h
|
|
|
|
|
|
/**
|
|
* Display configuration
|
|
**/
|
|
#define NerfDigits 6
|
|
|
|
|
|
/**
|
|
* Display pin configuration
|
|
*
|
|
* Clock and data are used only when not using SPI,
|
|
* clock speed is only for SPI
|
|
**/
|
|
#define NerfLatchPin 10
|
|
#define NerfDataPin 11
|
|
#define NerfClockPin 12
|
|
#define NerfClockSpeed 1600000UL
|
|
|
|
|
|
/**
|
|
* Button configuration
|
|
**/
|
|
#define NerfButtonLongPressThreshold 1000
|
|
|
|
|
|
/**
|
|
* Button pin configuration
|
|
**/
|
|
#define NerfButtonA 3
|
|
#define NerfButtonB 2
|
|
#define NerfButtonArmed 4
|
|
|
|
|
|
|
|
/**
|
|
* Default state configuration
|
|
**/
|
|
#define NerfDefaultIntroTime 1000
|
|
|
|
|
|
#endif |