diff options
Diffstat (limited to 'keymaps/onekey/stm32f103')
-rw-r--r-- | keymaps/onekey/stm32f103/halconf.h | 5 | ||||
-rw-r--r-- | keymaps/onekey/stm32f103/keymap.c | 59 | ||||
-rw-r--r-- | keymaps/onekey/stm32f103/mcuconf.h | 6 | ||||
-rw-r--r-- | keymaps/onekey/stm32f103/rules.mk | 1 |
4 files changed, 0 insertions, 71 deletions
diff --git a/keymaps/onekey/stm32f103/halconf.h b/keymaps/onekey/stm32f103/halconf.h deleted file mode 100644 index 29a1a28..0000000 --- a/keymaps/onekey/stm32f103/halconf.h +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright 2024 jack (@waffle87) -// SPDX-License-Identifier: GPL-2.0-or-later -#pragma once -#define HAL_USE_I2C TRUE -#include_next <halconf.h> diff --git a/keymaps/onekey/stm32f103/keymap.c b/keymaps/onekey/stm32f103/keymap.c deleted file mode 100644 index e313ba0..0000000 --- a/keymaps/onekey/stm32f103/keymap.c +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2024 jack (@waffle87) -// SPDX-License-Identifier: GPL-2.0-or-later -#include"waffle.h" - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT_ortho_1x1(KC_A) -}; - -#ifdef OLED_ENABLE - -oled_rotation_t oled_init_user(oled_rotation_t rotation) { - if (!is_keyboard_master()) { - return OLED_ROTATION_180; - } - return rotation; -} - -static void render_logo(void) { - static const char PROGMEM logo[] = { - 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, - 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, - 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0x00 - }; - oled_write_P(logo, false); -} - -void render_layer_state(void) { - oled_write_P(PSTR("Layer: "), false); - switch (get_highest_layer(layer_state)) { - case 0: - oled_write_ln_P(PSTR("Default"), false); - break; - case 1: - oled_write_ln_P(PSTR("Lower"), false); - break; - case 2: - oled_write_ln_P(PSTR("Raise"), false); - break; - case 3: - oled_write_ln_P(PSTR("Adjust"), false); - break; - default: - oled_write_ln_P(PSTR("Undefined"), false); - } -} -bool oled_task_keymap(void) { - static bool finished_timer = false; - if (!finished_timer && last_input_activity_elapsed() < 8000) { - oled_write(PSTR("eeeeeeee"), false); - } else { - if (!finished_timer) { - oled_clear(); - finished_timer = true; - } - oled_write(PSTR("hhhhhhhhhhhh"), false); - } - return false; -} -#endif diff --git a/keymaps/onekey/stm32f103/mcuconf.h b/keymaps/onekey/stm32f103/mcuconf.h deleted file mode 100644 index bb15393..0000000 --- a/keymaps/onekey/stm32f103/mcuconf.h +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2024 jack (@waffle87) -// SPDX-License-Identifier: GPL-2.0-or-later -#pragma once -#include_next <mcuconf.h> -#undef STM32_I2C_USE_I2C1 -#define STM32_I2C_USE_I2C1 TRUE diff --git a/keymaps/onekey/stm32f103/rules.mk b/keymaps/onekey/stm32f103/rules.mk deleted file mode 100644 index dd68e9d..0000000 --- a/keymaps/onekey/stm32f103/rules.mk +++ /dev/null @@ -1 +0,0 @@ -OLED_ENABLE = yes |