mirror of
https://github.com/clockworkpi/PicoCalc.git
synced 2026-03-24 21:12:37 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user