aboutsummaryrefslogtreecommitdiff
path: root/keyboards/dc01/left
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dc01/left')
-rw-r--r--keyboards/dc01/left/keyboard.json (renamed from keyboards/dc01/left/info.json)6
-rw-r--r--keyboards/dc01/left/matrix.c2
-rw-r--r--keyboards/dc01/left/rules.mk14
3 files changed, 8 insertions, 14 deletions
diff --git a/keyboards/dc01/left/info.json b/keyboards/dc01/left/keyboard.json
index 17fe3c64a2..e296790995 100644
--- a/keyboards/dc01/left/info.json
+++ b/keyboards/dc01/left/keyboard.json
@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "features": {
+ "bootmagic": true,
+ "mousekey": true,
+ "extrakey": true,
+ "nkro": true
+ },
"debounce": 0,
"layouts": {
"LAYOUT_ansi": {
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c
index fd21d4333b..39e5be5a1d 100644
--- a/keyboards/dc01/left/matrix.c
+++ b/keyboards/dc01/left/matrix.c
@@ -388,7 +388,7 @@ static void unselect_cols(void)
// Complete rows from other modules over i2c
i2c_status_t i2c_transaction(uint8_t address, uint32_t mask, uint8_t col_offset) {
uint8_t data[MATRIX_ROWS + 1];
- i2c_status_t status = i2c_readReg(address, 0x01, data, (MATRIX_ROWS + 1), 5);
+ i2c_status_t status = i2c_read_register(address, 0x01, data, (MATRIX_ROWS + 1), 5);
for (uint8_t i = 0; i < (MATRIX_ROWS) && status >= 0; i++) { //assemble slave matrix in main matrix
matrix[i] &= mask; //mask bits to keep
diff --git a/keyboards/dc01/left/rules.mk b/keyboards/dc01/left/rules.mk
index 3a9422733c..2493924f46 100644
--- a/keyboards/dc01/left/rules.mk
+++ b/keyboards/dc01/left/rules.mk
@@ -1,15 +1,3 @@
-# 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 = no # Commands for debug and configuration
-NKRO_ENABLE = yes # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
-AUDIO_ENABLE = no # Audio output
-
-CUSTOM_MATRIX = yes # Use custom matrix
+CUSTOM_MATRIX = yes
SRC += matrix.c
I2C_DRIVER_REQUIRED = yes