Added defines
This commit is contained in:
parent
dafc690ef7
commit
e7efa2d957
@ -32,6 +32,7 @@ typedef enum { GPIO_0 = 0,
|
|||||||
|
|
||||||
#define NO_CURRENT_VIEW NULL
|
#define NO_CURRENT_VIEW NULL
|
||||||
#define LAST_VIEW -1
|
#define LAST_VIEW -1
|
||||||
|
#define RESERVED_VIEW_UID -2
|
||||||
|
|
||||||
#define BATT_FULL 870 //8.4v
|
#define BATT_FULL 870 //8.4v
|
||||||
#define BATT_EMPTY 775 //7.4v
|
#define BATT_EMPTY 775 //7.4v
|
||||||
@ -46,11 +47,10 @@ typedef enum { BATTERY = 0, USB } PowerType;
|
|||||||
|
|
||||||
//Data structure for the view handling
|
//Data structure for the view handling
|
||||||
typedef struct viewLink{
|
typedef struct viewLink{
|
||||||
boolean (*viewLogicFunction)(Adafruit_SSD1306&, void*);
|
boolean (*viewLogicFunction)(Adafruit_SSD1306&, void*);
|
||||||
void *pData;
|
void *pData;
|
||||||
const unsigned char UID;
|
const int UID;
|
||||||
|
struct viewLink *next;
|
||||||
struct viewLink *next;
|
|
||||||
} ViewLink, *ViewLinkedList;
|
} ViewLink, *ViewLinkedList;
|
||||||
|
|
||||||
//Data structure for the battery info
|
//Data structure for the battery info
|
||||||
|
Loading…
Reference in New Issue
Block a user