summaryrefslogtreecommitdiff
path: root/keyboards/nullbitsco/nibble/keymaps/oled_status/oled_display.h
diff options
context:
space:
mode:
authorJose Luis Adelantado Torres <JLuisAdelantadoTorres@gmail.com>2021-06-24 11:24:11 +0900
committerGitHub <noreply@github.com>2021-06-24 12:24:11 +1000
commit5e86a11a8d49928f06609e9ee1b9ef86c45f3f2e (patch)
tree25a2dcf2aa290fe9a4fbc7a0b6a70a2d437abfe1 /keyboards/nullbitsco/nibble/keymaps/oled_status/oled_display.h
parent3099630a11ff64797deb4864193c37b3e4074e05 (diff)
[keymap] Added new `oled_status` keymap to `nullbitsco/nibble` keyboard (#12824)
* Added new oled_status keymap to nullbitsco/nibble keyboard * rm: Removed font from src imports
Diffstat (limited to 'keyboards/nullbitsco/nibble/keymaps/oled_status/oled_display.h')
-rw-r--r--keyboards/nullbitsco/nibble/keymaps/oled_status/oled_display.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled_status/oled_display.h b/keyboards/nullbitsco/nibble/keymaps/oled_status/oled_display.h
new file mode 100644
index 0000000000..bd59d44b41
--- /dev/null
+++ b/keyboards/nullbitsco/nibble/keymaps/oled_status/oled_display.h
@@ -0,0 +1,41 @@
+/* Copyright 2021 Jose Luis Adelantado Torres
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#pragma once
+
+typedef enum {
+ OLED_MODE_IDLE = 0,
+ OLED_MODE_VOLUME_UP = 1,
+ OLED_MODE_VOLUME_DOWN = 2,
+ OLED_MODE_RGB_ON = 3,
+ OLED_MODE_RGB_OFF = 4,
+} oled_mode_t;
+
+uint16_t oled_timer;
+oled_mode_t oled_mode;
+
+void set_oled_mode(oled_mode_t mode);
+
+void process_record_encoder_oled(uint16_t keycode);
+
+void process_record_keymap_oled(uint16_t keycode);
+
+void render_wpm(void);
+
+void render_idle(void);
+
+void render_status_mode_message(void);
+
+void render_frame(void);