mirror of
https://github.com/clockworkpi/PicoCalc.git
synced 2026-03-23 12:32:38 +01:00
bug fix for REG_ID_BAT
The correct power-on sequence for obtaining the battery percentage is to first power on the PicoCalc with the battery inserted Then connect the USB Type-C cable to read the battery percentage. The battery percentage also can be retrieved via I2C communication within the UF2 program. PicoCalc keyboard firmware updating required.
This commit is contained in:
@@ -9,11 +9,12 @@
|
||||
#define I2C_KBD_SDA 6
|
||||
#define I2C_KBD_SCL 7
|
||||
|
||||
#define I2C_KBD_SPEED 400000 // if dual i2c, then the speed of keyboard i2c should be 10khz
|
||||
#define I2C_KBD_SPEED 10000 // if dual i2c, then the speed of keyboard i2c should be 10khz
|
||||
|
||||
#define I2C_KBD_ADDR 0x1F
|
||||
|
||||
void init_i2c_kbd();
|
||||
int read_i2c_kbd();
|
||||
int read_battery();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user