diff options
Diffstat (limited to 'keyboards/hotdox')
-rw-r--r-- | keyboards/hotdox/hotdox.c | 2 | ||||
-rw-r--r-- | keyboards/hotdox/keyboard.json (renamed from keyboards/hotdox/info.json) | 9 | ||||
-rw-r--r-- | keyboards/hotdox/left.c | 5 | ||||
-rw-r--r-- | keyboards/hotdox/left.h | 4 | ||||
-rw-r--r-- | keyboards/hotdox/rules.mk | 13 |
5 files changed, 12 insertions, 21 deletions
diff --git a/keyboards/hotdox/hotdox.c b/keyboards/hotdox/hotdox.c index 00af9efb1e..4e86ec6d18 100644 --- a/keyboards/hotdox/hotdox.c +++ b/keyboards/hotdox/hotdox.c @@ -1,6 +1,4 @@ #include "hotdox.h" -#include "backlight.h" -#include "quantum.h" extern inline void ergodox_board_led_on(void); extern inline void ergodox_right_led_1_on(void); diff --git a/keyboards/hotdox/info.json b/keyboards/hotdox/keyboard.json index 8184588e5d..5d2c3ec5ac 100644 --- a/keyboards/hotdox/info.json +++ b/keyboards/hotdox/keyboard.json @@ -12,6 +12,15 @@ }, "processor": "atmega32u4", "bootloader": "atmel-dfu", + "features": { + "bootmagic": true, + "mousekey": true, + "extrakey": true, + "console": true, + "nkro": true, + "backlight": true, + "unicode": true + }, "tapping": { "toggle": 1 }, diff --git a/keyboards/hotdox/left.c b/keyboards/hotdox/left.c index f963ecdae7..ac51322476 100644 --- a/keyboards/hotdox/left.c +++ b/keyboards/hotdox/left.c @@ -1,5 +1,6 @@ #include "action.h" #include "left.h" +#include "print.h" #include "wait.h" bool i2c_initialized = false; @@ -99,7 +100,7 @@ i2c_status_t left_write(uint8_t reg, uint8_t data) i2c_status_t ret; - ret = i2c_writeReg(I2C_ADDR, reg, &data, sizeof(data), HOTDOX_I2C_TIMEOUT); + ret = i2c_write_register(I2C_ADDR, reg, &data, sizeof(data), HOTDOX_I2C_TIMEOUT); return ret; } @@ -112,7 +113,7 @@ i2c_status_t left_read(uint8_t reg, uint8_t *data) } i2c_status_t ret = 0; - ret = i2c_readReg(I2C_ADDR, reg, data, 1, HOTDOX_I2C_TIMEOUT); + ret = i2c_read_register(I2C_ADDR, reg, data, 1, HOTDOX_I2C_TIMEOUT); return ret; } diff --git a/keyboards/hotdox/left.h b/keyboards/hotdox/left.h index 32faadba21..931d98d8e5 100644 --- a/keyboards/hotdox/left.h +++ b/keyboards/hotdox/left.h @@ -1,9 +1,7 @@ #pragma once -#include "quantum.h" #include <stdint.h> #include "i2c_master.h" -#include <util/delay.h> #define MCP23017 #define MCP23017_A0 0 @@ -43,8 +41,6 @@ void left_scan(void); uint8_t left_read_cols(void); uint8_t left_get_col(uint8_t col); -matrix_row_t left_read_row(void); - void left_unselect_rows(void); void left_select_row(uint8_t row); diff --git a/keyboards/hotdox/rules.mk b/keyboards/hotdox/rules.mk index 8e11eeabe0..f5dfc77dd1 100644 --- a/keyboards/hotdox/rules.mk +++ b/keyboards/hotdox/rules.mk @@ -1,17 +1,4 @@ -# Build Options -# change yes to no to disable -# CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDone -UNICODE_ENABLE = yes # Unicode -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = yes # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality -SWAP_HANDS_ENABLE = no # Disable Onehand -RGBLIGHT_ENABLE = no # project specific files SRC = matrix.c \ |