diff options
author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-11 14:50:43 +0700 |
---|---|---|
committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-11 14:50:43 +0700 |
commit | 9fc3afbef4b3ecc8568c37f247c3c7f1ec87a4c1 (patch) | |
tree | 2eb27cc15f1f14192481d5051939e86139c28331 /keyboards/handwired/promethium/promethium.h | |
parent | b31ac35441a8117877e446b8467e3e34e0a4505b (diff) |
simplify battery calculation for now
Diffstat (limited to 'keyboards/handwired/promethium/promethium.h')
-rw-r--r-- | keyboards/handwired/promethium/promethium.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/handwired/promethium/promethium.h b/keyboards/handwired/promethium/promethium.h index 6d51f81ca6..da37e5c560 100644 --- a/keyboards/handwired/promethium/promethium.h +++ b/keyboards/handwired/promethium/promethium.h @@ -7,6 +7,8 @@ #define UNICODE_TYPE_DELAY 0 #define BATTERY_PIN 9 #define BATTERY_POLL 30000 +#define MAX_VOLTAGE 4.2 +#define MIN_VOLTAGE 3.2 #define KEYMAP( \ k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \ @@ -103,4 +105,4 @@ enum led_sequence { #endif -void battery_poll(float percentage);
\ No newline at end of file +void battery_poll(uint8_t level);
\ No newline at end of file |