diff options
author | Ryan <fauxpark@gmail.com> | 2023-03-20 08:12:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 08:12:05 +1100 |
commit | 3c144fac5e2b634166f6b9cc0fc45029d63d3398 (patch) | |
tree | c3e408ca9fa27721c19f4fc0ba8b4119798e5dd2 /keyboards/converter/sun_usb/command_extra.c | |
parent | 9d302f9b7fa7fc88766de322a52d1a1be38e723c (diff) |
Clean up usage of `QMK_KEYBOARD_H` (#20167)
Diffstat (limited to 'keyboards/converter/sun_usb/command_extra.c')
-rw-r--r-- | keyboards/converter/sun_usb/command_extra.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/keyboards/converter/sun_usb/command_extra.c b/keyboards/converter/sun_usb/command_extra.c deleted file mode 100644 index b15f9dc9bd..0000000000 --- a/keyboards/converter/sun_usb/command_extra.c +++ /dev/null @@ -1,64 +0,0 @@ -#include QMK_KEYBOARD_H -#include "uart.h" - -bool sun_bell = false; -bool sun_click = false; - - -bool command_extra(uint8_t code) -{ - switch (code) { - case KC_H: - case KC_SLASH: /* ? */ - print("\n\n----- Sun converter Help -----\n"); - print("Home: Toggle Bell\n"); - print("End: Toggle Click\n"); - print("PgUp: LED all On\n"); - print("PgDown: LED all Off\n"); - print("Insert: Layout\n"); - print("Delete: Reset\n"); - return false; - case KC_DEL: - print("Reset\n"); - uart_write(0x01); - break; - case KC_HOME: - sun_bell = !sun_bell; - if (sun_bell) { - print("Bell On\n"); - uart_write(0x02); - } else { - print("Bell Off\n"); - uart_write(0x03); - } - break; - case KC_END: - sun_click = !sun_click; - if (sun_click) { - print("Click On\n"); - uart_write(0x0A); - } else { - print("Click Off\n"); - uart_write(0x0B); - } - break; - case KC_PGUP: - print("LED all on\n"); - uart_write(0x0E); - uart_write(0xFF); - break; - case KC_PGDN: - print("LED all off\n"); - uart_write(0x0E); - uart_write(0x00); - break; - case KC_INSERT: - print("layout\n"); - uart_write(0x0F); - break; - default: - xprintf("Unknown extra command: %02X\n", code); - return false; - } - return true; -} |