Direct get bat info from PicoMIte(MMBasic), no
but I add the sample code in
basicly just like @pkr said
send i2c command 0x0b to the keyboard and get return data
Then I found out there is a bug in current keyboard firmware
if we send i2c command 0x0b to the kbd ,there is a high odds that will crash keyboard
And I fixed this bug
so If you are really interesting in this ,here is the docs for How to flash the new firmware into keyboard of picocalc
important note is if we want the correct battery percent
we need to insert batteries first without any cable
then Power ON PIcoCalc
then we can plug typec cable , get battery info from serial port or else.
There is also a shortcut on keyboard to get battery level
on keyboard press Alt+B
the top-left led will blink
- 3 times means full,or above 80%
- 2 times means 50%
- 1 means low
However, due to the low power consumption of the picocalc ,even 1 blink will last enough time