Implement battery level indicator

This commit is contained in:
Priyadi Iman Nurcahyo 2017-02-10 21:28:46 +07:00
parent 07879bf66b
commit 5944ab246a
6 changed files with 97 additions and 11 deletions

View file

@ -5,6 +5,8 @@
#define PS2_INIT_DELAY 2000
#define UNICODE_TYPE_DELAY 0
#define BATTERY_PIN 9
#define BATTERY_POLL 30000
#define KEYMAP( \
k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \
@ -23,6 +25,8 @@
{k47, k48, k49, k4a, k4b, k4c} \
}
enum led_sequence {
LED_IND_BLUETOOTH,
LED_IND_USB,
@ -99,4 +103,4 @@ enum led_sequence {
#endif
void battery_poll(float percentage);