aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kopibeng/typ65
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kopibeng/typ65')
-rw-r--r--keyboards/kopibeng/typ65/keyboard.json (renamed from keyboards/kopibeng/typ65/info.json)8
-rw-r--r--keyboards/kopibeng/typ65/rules.mk13
-rw-r--r--keyboards/kopibeng/typ65/typ65.c42
3 files changed, 29 insertions, 34 deletions
diff --git a/keyboards/kopibeng/typ65/info.json b/keyboards/kopibeng/typ65/keyboard.json
index d142f099d8..c2598cadcb 100644
--- a/keyboards/kopibeng/typ65/info.json
+++ b/keyboards/kopibeng/typ65/keyboard.json
@@ -8,6 +8,14 @@
"pid": "0x065E",
"device_version": "0.0.1"
},
+ "features": {
+ "bootmagic": true,
+ "command": true,
+ "console": false,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true
+ },
"matrix_pins": {
"cols": ["D3", "D5", "D4", "D6", "D7", "B4", "B5", "B6", "C6", "C7", "F7", "F5", "F4", "F1", "F0", "E6"],
"rows": ["D0", "D1", "D2", "F6", "B0"]
diff --git a/keyboards/kopibeng/typ65/rules.mk b/keyboards/kopibeng/typ65/rules.mk
deleted file mode 100644
index 76764d6e0d..0000000000
--- a/keyboards/kopibeng/typ65/rules.mk
+++ /dev/null
@@ -1,13 +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 = no # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
-AUDIO_ENABLE = no # Audio output
-ENCODER_ENABLE = no # Enable Encoder \ No newline at end of file
diff --git a/keyboards/kopibeng/typ65/typ65.c b/keyboards/kopibeng/typ65/typ65.c
index 246a8c13af..53af0ba97d 100644
--- a/keyboards/kopibeng/typ65/typ65.c
+++ b/keyboards/kopibeng/typ65/typ65.c
@@ -17,9 +17,9 @@
#include "quantum.h"
void keyboard_pre_init_kb (void) {
- setPinOutput(INDICATOR_0);
- setPinOutput(INDICATOR_1);
- setPinOutput(INDICATOR_2);
+ gpio_set_pin_output(INDICATOR_0);
+ gpio_set_pin_output(INDICATOR_1);
+ gpio_set_pin_output(INDICATOR_2);
keyboard_pre_init_user();
}
@@ -27,41 +27,41 @@ void keyboard_pre_init_kb (void) {
__attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case 1:
- writePinHigh(INDICATOR_0);
- writePinLow(INDICATOR_1);
- writePinLow(INDICATOR_2);
+ gpio_write_pin_high(INDICATOR_0);
+ gpio_write_pin_low(INDICATOR_1);
+ gpio_write_pin_low(INDICATOR_2);
break;
case 2:
- writePinLow(INDICATOR_0);
- writePinHigh(INDICATOR_1);
- writePinLow(INDICATOR_2);
+ gpio_write_pin_low(INDICATOR_0);
+ gpio_write_pin_high(INDICATOR_1);
+ gpio_write_pin_low(INDICATOR_2);
break;
case 3:
- writePinLow(INDICATOR_0);
- writePinLow(INDICATOR_1);
- writePinHigh(INDICATOR_2);
+ gpio_write_pin_low(INDICATOR_0);
+ gpio_write_pin_low(INDICATOR_1);
+ gpio_write_pin_high(INDICATOR_2);
break;
default:
- writePinHigh(INDICATOR_0);
- writePinHigh(INDICATOR_1);
- writePinHigh(INDICATOR_2);
+ gpio_write_pin_high(INDICATOR_0);
+ gpio_write_pin_high(INDICATOR_1);
+ gpio_write_pin_high(INDICATOR_2);
break;
}
return state;
}
void suspend_power_down_kb(void) {
- writePinLow(INDICATOR_0);
- writePinLow(INDICATOR_1);
- writePinLow(INDICATOR_2);
+ gpio_write_pin_low(INDICATOR_0);
+ gpio_write_pin_low(INDICATOR_1);
+ gpio_write_pin_low(INDICATOR_2);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
- writePinHigh(INDICATOR_0);
- writePinHigh(INDICATOR_1);
- writePinHigh(INDICATOR_2);
+ gpio_write_pin_high(INDICATOR_0);
+ gpio_write_pin_high(INDICATOR_1);
+ gpio_write_pin_high(INDICATOR_2);
suspend_wakeup_init_user();
} \ No newline at end of file