add check_battery

This commit is contained in:
cuu
2021-05-29 13:25:14 +08:00
parent 0824e292fd
commit 4e06a6e213
3 changed files with 118 additions and 42 deletions

View File

@@ -209,7 +209,8 @@ typedef struct _CONFIG
uint16_t wordgap:10;//1023 max
uint8_t max_pts;// max pts in print_dots_8bit_split
uint8_t lock;
Margin margin;
FONT*font;
ImageCache *img;
@@ -225,6 +226,13 @@ typedef struct _SerialCache{
uint8_t data[77];//384/5
}SerialCache;
typedef struct _TimeRec{
unsigned int time;
uint8_t last_status;
uint8_t check;
}TimeRec;
void PrintDots8bit(uint8_t *Array, uint8_t characters,uint8_t feed_num);
uint8_t invert_bit(uint8_t a);