summaryrefslogtreecommitdiff
path: root/keyboards/lily58/keymaps/druotoni/gui_state.h
diff options
context:
space:
mode:
authordruotoni <89318351+druotoni@users.noreply.github.com>2022-01-13 20:00:35 +0100
committerGitHub <noreply@github.com>2022-01-13 11:00:35 -0800
commitb3c0548ed3cdb31c47d1a9e06c446c0804d6e1b6 (patch)
tree87ba1062ffd5d3c77e7ea95fe537d32c3337da94 /keyboards/lily58/keymaps/druotoni/gui_state.h
parent8a6da095d22d66c0ba36ce8731c9d821ca4262e9 (diff)
[Keymap] Lily58 : HELL0 NAVI. Interface (#15469)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/lily58/keymaps/druotoni/gui_state.h')
-rw-r--r--keyboards/lily58/keymaps/druotoni/gui_state.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/keyboards/lily58/keymaps/druotoni/gui_state.h b/keyboards/lily58/keymaps/druotoni/gui_state.h
new file mode 100644
index 0000000000..190e02d303
--- /dev/null
+++ b/keyboards/lily58/keymaps/druotoni/gui_state.h
@@ -0,0 +1,18 @@
+// Copyright 2021 Nicolas Druoton (druotoni)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+// states timing
+#define BOOTING_TIME_TRESHOLD 7000
+#define WAKING_UP_TIME_TRESHOLD 300
+#define IDLE_TIME_TRESHOLD 4000
+#define HALTING_TIME_TRESHOLD IDLE_TIME_TRESHOLD + 6000
+#define SLEEP_TIME_TRESHOLD HALTING_TIME_TRESHOLD + 8000
+
+typedef uint8_t gui_state_t;
+enum gui_state { _WAKINGUP = 0, _IDLE, _SLEEP, _UP, _BOOTING, _HALTING };
+
+gui_state_t get_gui_state(void);
+void update_gui_state(void);
+uint8_t get_glitch_probability(void); \ No newline at end of file