summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/promethium/promethium.h
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-10 15:28:46 +0100
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-10 15:28:46 +0100
commit5944ab246a981d6ceca94b0972345277a746c2d3 (patch)
tree01c240c2dd6a39cc44157e51287a7b194c6b4017 /keyboards/handwired/promethium/promethium.h
parent07879bf66b29535214a147b1797f96767b1faa58 (diff)
downloadqmk_firmware-5944ab246a981d6ceca94b0972345277a746c2d3.tar.gz
qmk_firmware-5944ab246a981d6ceca94b0972345277a746c2d3.tar.xz
Implement battery level indicator
Diffstat (limited to 'keyboards/handwired/promethium/promethium.h')
-rw-r--r--keyboards/handwired/promethium/promethium.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/keyboards/handwired/promethium/promethium.h b/keyboards/handwired/promethium/promethium.h
index a2572db2a..6d51f81ca 100644
--- a/keyboards/handwired/promethium/promethium.h
+++ b/keyboards/handwired/promethium/promethium.h
@@ -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); \ No newline at end of file