11 Commits

Author SHA1 Message Date
Yatao Li
557986bcb8 Revert "picocalc_keyboard: add bootmode register"
This reverts commit a690686270a1ea7eab0533f521d00cbe3c3a2806.
2025-06-15 18:36:13 +08:00
Yatao Li
a690686270 picocalc_keyboard: add bootmode register 2025-06-15 02:50:35 +08:00
cuu
295f7e7a8e Depricated report_bat in picocalc_keyboard 2025-04-21 23:24:28 +08:00
cuu
a1847ee338 Fix: use reg REG_ID_BAT to store current battery percent
also fix bug in low_bat, use low_bat_count to debounce
first time battery percent detection error
2025-04-21 15:43:39 +08:00
shtirlic
f58e85e10e
Fix i2c slave scl freeze if read address first recieved
If i2c master performs discovery via address read, stm32 has no data to
send for the masterin requestEvent. Send the zero byte if we got
requestEvent early, for example on i2c address read.
2025-04-19 14:17:17 +07:00
Wez Furlong
f9a60c1590
Allow setting keyboard backlight via i2c
This hooks up the write portion of REG_ID_BK2

closes: https://github.com/clockworkpi/PicoCalc/issues/13
2025-04-17 07:08:24 -07:00
GNU
4c65694629
Merge pull request #19 from prokrypt/patch-2
picocalc_keyboard.ino: don't turn off backlight during register read
2025-04-14 07:29:04 -07:00
prokrypt
b207dc53e9
picocalc_keyboard.ino: use is_write to NOT turn off backlight during read.
fixes blacked out screen when backlight register is read.
2025-04-13 01:28:48 -07:00
prokrypt
ae0a42e11a
picocalc_keyboard.ino: wait a bit before initializing i2c
fixes stm32 not showing up in i2c bus when ds3231 RTC board is added.
2025-04-13 01:24:03 -07:00
cuu
65bf0c65a7 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.
2025-04-02 00:11:08 +08:00
cuu
f4a1bef7dc Add picocalc stm32 i2c keyboard code 2025-03-14 13:28:19 +08:00