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 LAST_VIEW -1
 | 
			
		||||
#define RESERVED_VIEW_UID -2
 | 
			
		||||
 | 
			
		||||
#define BATT_FULL 870 //8.4v
 | 
			
		||||
#define BATT_EMPTY 775 //7.4v
 | 
			
		||||
@ -46,11 +47,10 @@ typedef enum { BATTERY = 0, USB } PowerType;
 | 
			
		||||
 | 
			
		||||
//Data structure for the view handling
 | 
			
		||||
typedef struct viewLink{
 | 
			
		||||
  boolean (*viewLogicFunction)(Adafruit_SSD1306&, void*);
 | 
			
		||||
  void *pData;
 | 
			
		||||
  const unsigned char UID;
 | 
			
		||||
  
 | 
			
		||||
  struct viewLink *next;
 | 
			
		||||
    boolean (*viewLogicFunction)(Adafruit_SSD1306&, void*);
 | 
			
		||||
    void *pData;
 | 
			
		||||
    const int UID;
 | 
			
		||||
    struct viewLink *next;
 | 
			
		||||
} ViewLink, *ViewLinkedList;
 | 
			
		||||
 | 
			
		||||
//Data structure for the battery info
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user