Prepare to update picocalc_keyboard to v1.6 made by @ernst

This version has the following changes:

* return the bios version with REG_ID_VER
* Improved backlight setting for LCD and Keyboard
* Replaced delay() with a non-blocking delay nbDelay()
* Implements monitoring of receive and request events
* I2C reset if no events were recorded in previous 2.5 seconds indicating a possible I2C malfunction.
This commit is contained in:
cuu
2026-03-07 00:53:05 +08:00
parent 881ea3edc1
commit 410f8fcd72
4 changed files with 59 additions and 14 deletions

View File

@@ -1,7 +1,9 @@
#ifndef CONF_APP_H
#define CONF_APP_H
#define SLAVE_ADDRESS 0x1F
#define BIOSVERSION 0x16
#define SLAVE_ADDRESS 0x1F
#define FIFO_SIZE 31
#define INT_DURATION_MS 1
@@ -20,7 +22,8 @@
#define LOW_BAT_VAL 20
#define LCD_BACKLIGHT_STEP 10
#define LCD_BACKLIGHT_STEP 16
#define KBD_BACKLIGHT_STEP 32
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)