diff options
Diffstat (limited to 'keyboards/monstargear/xo87/solderable')
-rw-r--r-- | keyboards/monstargear/xo87/solderable/keyboard.json (renamed from keyboards/monstargear/xo87/solderable/info.json) | 10 | ||||
-rw-r--r-- | keyboards/monstargear/xo87/solderable/rules.mk | 12 | ||||
-rw-r--r-- | keyboards/monstargear/xo87/solderable/solderable.c | 63 |
3 files changed, 41 insertions, 44 deletions
diff --git a/keyboards/monstargear/xo87/solderable/info.json b/keyboards/monstargear/xo87/solderable/keyboard.json index 4c569a89df..f8436f4bac 100644 --- a/keyboards/monstargear/xo87/solderable/info.json +++ b/keyboards/monstargear/xo87/solderable/keyboard.json @@ -8,6 +8,16 @@ "pid": "0x5344", "device_version": "0.0.1" }, + "features": { + "backlight": true, + "bootmagic": true, + "command": true, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgblight": true + }, "matrix_pins": { "cols": ["C5", "C3", "C1", "E1", "D6", "D2", "B7", "B3", "F6", "F7", "F3", "A5", "A1", "E2", "C7", "A6"], "rows": ["E6", "E7", "E3", "B0", "B1", "A2"] diff --git a/keyboards/monstargear/xo87/solderable/rules.mk b/keyboards/monstargear/xo87/solderable/rules.mk deleted file mode 100644 index d845a512bb..0000000000 --- a/keyboards/monstargear/xo87/solderable/rules.mk +++ /dev/null @@ -1,12 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output diff --git a/keyboards/monstargear/xo87/solderable/solderable.c b/keyboards/monstargear/xo87/solderable/solderable.c index f1fc65ea01..56f3c524ea 100644 --- a/keyboards/monstargear/xo87/solderable/solderable.c +++ b/keyboards/monstargear/xo87/solderable/solderable.c @@ -15,7 +15,6 @@ */ #include "solderable.h" -#include "quantum.h" #define noLed {255,255} @@ -24,28 +23,28 @@ #define ledCapSP (80+8) void backlight_init_ports(void) { - setPinOutput(Lseg0); - setPinOutput(Lseg1); - setPinOutput(Lseg2); - setPinOutput(Lseg3); - setPinOutput(Lseg4); - setPinOutput(Lseg5); - setPinOutput(Lcom0); - setPinOutput(Lcom1); - setPinOutput(Lcom2); - setPinOutput(Lcom3); - setPinOutput(Lcom4); - setPinOutput(Lcom5); - setPinOutput(Lcom6); - setPinOutput(Lcom7); - setPinOutput(Lcom8); - setPinOutput(Lcom9); - setPinOutput(Lcom10); - setPinOutput(Lcom11); - setPinOutput(Lcom12); - setPinOutput(Lcom13); - setPinOutput(Lcom14); - setPinOutput(Lcom15); + gpio_set_pin_output(Lseg0); + gpio_set_pin_output(Lseg1); + gpio_set_pin_output(Lseg2); + gpio_set_pin_output(Lseg3); + gpio_set_pin_output(Lseg4); + gpio_set_pin_output(Lseg5); + gpio_set_pin_output(Lcom0); + gpio_set_pin_output(Lcom1); + gpio_set_pin_output(Lcom2); + gpio_set_pin_output(Lcom3); + gpio_set_pin_output(Lcom4); + gpio_set_pin_output(Lcom5); + gpio_set_pin_output(Lcom6); + gpio_set_pin_output(Lcom7); + gpio_set_pin_output(Lcom8); + gpio_set_pin_output(Lcom9); + gpio_set_pin_output(Lcom10); + gpio_set_pin_output(Lcom11); + gpio_set_pin_output(Lcom12); + gpio_set_pin_output(Lcom13); + gpio_set_pin_output(Lcom14); + gpio_set_pin_output(Lcom15); } void backlight_set(uint8_t level) { @@ -55,22 +54,22 @@ void backlight_task(void) { // This is a temporary workaround to get the status LEDs working until we can figure out the LED matrix led_t host_leds = host_keyboard_led_state(); if (host_leds.scroll_lock) { - writePinHigh(Lcom3); - writePinHigh(Lseg5); + gpio_write_pin_high(Lcom3); + gpio_write_pin_high(Lseg5); } else { - writePinLow(Lcom3); + gpio_write_pin_low(Lcom3); } if (host_leds.num_lock) { - writePinHigh(Lcom7); - writePinHigh(Lseg5); + gpio_write_pin_high(Lcom7); + gpio_write_pin_high(Lseg5); } else { - writePinLow(Lcom7); + gpio_write_pin_low(Lcom7); } if (host_leds.caps_lock) { - writePinHigh(Lcom8); - writePinHigh(Lseg5); + gpio_write_pin_high(Lcom8); + gpio_write_pin_high(Lseg5); } else { - writePinLow(Lcom8); + gpio_write_pin_low(Lcom8); } } |