Update picocalc_helloworld

battery info now has charging status flag
This commit is contained in:
cuu
2025-04-21 15:46:18 +08:00
parent a1847ee338
commit 3b84959ee6
2 changed files with 21 additions and 8 deletions

View File

@@ -17,4 +17,6 @@ void init_i2c_kbd();
int read_i2c_kbd();
int read_battery();
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
#define bitClear(value, bit) ((value) &= ~(1 << (bit)))
#endif