aboutsummaryrefslogtreecommitdiff
path: root/keyboards/dumbpad/v1x
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dumbpad/v1x')
-rw-r--r--keyboards/dumbpad/v1x/keyboard.json (renamed from keyboards/dumbpad/v1x/info.json)8
-rw-r--r--keyboards/dumbpad/v1x/rules.mk15
-rw-r--r--keyboards/dumbpad/v1x/v1x.c30
3 files changed, 23 insertions, 30 deletions
diff --git a/keyboards/dumbpad/v1x/info.json b/keyboards/dumbpad/v1x/keyboard.json
index f790bb80ec..9ab78e1a9f 100644
--- a/keyboards/dumbpad/v1x/info.json
+++ b/keyboards/dumbpad/v1x/keyboard.json
@@ -17,6 +17,14 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
+ "features": {
+ "bootmagic": true,
+ "mousekey": true,
+ "extrakey": true,
+ "console": true,
+ "encoder": true,
+ "key_lock": true
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/dumbpad/v1x/rules.mk b/keyboards/dumbpad/v1x/rules.mk
deleted file mode 100644
index 7816aab001..0000000000
--- a/keyboards/dumbpad/v1x/rules.mk
+++ /dev/null
@@ -1,15 +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 = yes # Console for debug
-COMMAND_ENABLE = no # Commands for debug and configuration
-NKRO_ENABLE = no # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
-AUDIO_ENABLE = no # Audio output
-
-ENCODER_ENABLE = yes
-KEY_LOCK_ENABLE = yes
diff --git a/keyboards/dumbpad/v1x/v1x.c b/keyboards/dumbpad/v1x/v1x.c
index 1022ad0605..cdbaff54aa 100644
--- a/keyboards/dumbpad/v1x/v1x.c
+++ b/keyboards/dumbpad/v1x/v1x.c
@@ -17,9 +17,9 @@
void keyboard_pre_init_kb(void) {
// Set LED IO as outputs
- setPinOutput(LED_00);
- setPinOutput(LED_01);
- setPinOutput(LED_02);
+ gpio_set_pin_output(LED_00);
+ gpio_set_pin_output(LED_01);
+ gpio_set_pin_output(LED_02);
keyboard_pre_init_user();
}
@@ -28,17 +28,17 @@ bool shutdown_kb(bool jump_to_bootloader) {
return false;
}
// Shutdown LEDs
- writePinLow(LED_00);
- writePinLow(LED_01);
- writePinLow(LED_02);
+ gpio_write_pin_low(LED_00);
+ gpio_write_pin_low(LED_01);
+ gpio_write_pin_low(LED_02);
return true;
}
layer_state_t layer_state_set_kb(layer_state_t state) {
// Layer LEDs act as binary indication of current layer
uint8_t layer = get_highest_layer(state);
- writePin(LED_00, layer & 0b1);
- writePin(LED_01, (layer >> 1) & 0b1);
+ gpio_write_pin(LED_00, layer & 0b1);
+ gpio_write_pin(LED_01, (layer >> 1) & 0b1);
return layer_state_set_user(state);
}
@@ -51,13 +51,13 @@ void matrix_init_kb(void) {
// runs once when the firmware starts up
uint8_t led_delay_ms = 80;
for (int i = 0; i < 2; i++) {
- writePinHigh(LED_00);
- writePinHigh(LED_01);
- writePinHigh(LED_02);
+ gpio_write_pin_high(LED_00);
+ gpio_write_pin_high(LED_01);
+ gpio_write_pin_high(LED_02);
wait_ms(led_delay_ms);
- writePinLow(LED_00);
- writePinLow(LED_01);
- writePinLow(LED_02);
+ gpio_write_pin_low(LED_00);
+ gpio_write_pin_low(LED_01);
+ gpio_write_pin_low(LED_02);
if (i < 1) {
wait_ms(led_delay_ms);
}
@@ -69,7 +69,7 @@ void matrix_init_kb(void) {
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if(res) {
- writePin(LED_02, !led_state.num_lock);
+ gpio_write_pin(LED_02, !led_state.num_lock);
}
return res;
}