aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/gamenum
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/gamenum')
-rw-r--r--keyboards/handwired/gamenum/gamenum.c8
-rw-r--r--keyboards/handwired/gamenum/keyboard.json (renamed from keyboards/handwired/gamenum/info.json)8
-rw-r--r--keyboards/handwired/gamenum/keymaps/default/keymap.c8
-rw-r--r--keyboards/handwired/gamenum/rules.mk11
4 files changed, 16 insertions, 19 deletions
diff --git a/keyboards/handwired/gamenum/gamenum.c b/keyboards/handwired/gamenum/gamenum.c
index 25493d94c3..08735c29ba 100644
--- a/keyboards/handwired/gamenum/gamenum.c
+++ b/keyboards/handwired/gamenum/gamenum.c
@@ -3,11 +3,11 @@
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
- DDRC |= (1<<6);
- PORTC &= ~(1<<6);
+ gpio_set_pin_output(C6);
+ gpio_write_pin_low(C6);
- DDRD |= (1<<4);
- PORTD &= ~(1<<4);
+ gpio_set_pin_output(D4);
+ gpio_write_pin_low(D4);
matrix_init_user();
diff --git a/keyboards/handwired/gamenum/info.json b/keyboards/handwired/gamenum/keyboard.json
index 78dbfce5f7..17460f4dca 100644
--- a/keyboards/handwired/gamenum/info.json
+++ b/keyboards/handwired/gamenum/keyboard.json
@@ -8,6 +8,14 @@
"pid": "0x5678",
"device_version": "0.0.1"
},
+ "features": {
+ "bootmagic": false,
+ "command": true,
+ "console": true,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": false
+ },
"matrix_pins": {
"cols": ["D7", "E6", "B4", "B5"],
"rows": ["B6", "B2", "B3", "B1", "F7"]
diff --git a/keyboards/handwired/gamenum/keymaps/default/keymap.c b/keyboards/handwired/gamenum/keymaps/default/keymap.c
index 8b768850c8..86bad4ebac 100644
--- a/keyboards/handwired/gamenum/keymaps/default/keymap.c
+++ b/keyboards/handwired/gamenum/keymaps/default/keymap.c
@@ -33,22 +33,22 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch(keycode) {
case TO(HDN):
if (record->event.pressed) {
- PORTC |= (1 << 6); // PC6 goes high
+ gpio_write_pin_high(C6);
}
return true;
case TO(OSY):
if (record->event.pressed) {
- PORTC &= ~(1 << 6); // PC6 goes high
- PORTD |= (1<<4);
+ gpio_write_pin_low(C6);
+ gpio_write_pin_high(D4);
}
return true;
case TO(DEF):
if (record->event.pressed) {
- PORTD &= ~(1 << 4); // PC6 goes high
+ gpio_write_pin_low(D4);
}
return true;
diff --git a/keyboards/handwired/gamenum/rules.mk b/keyboards/handwired/gamenum/rules.mk
deleted file mode 100644
index b6e2a5f9a4..0000000000
--- a/keyboards/handwired/gamenum/rules.mk
+++ /dev/null
@@ -1,11 +0,0 @@
-# Build Options
-# change yes to no to disable
-#
-BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes # Mouse keys
-EXTRAKEY_ENABLE = yes # Audio control and System control
-CONSOLE_ENABLE = yes # Console for debug
-COMMAND_ENABLE = yes # Commands for debug and configuration
-NKRO_ENABLE = no # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
-AUDIO_ENABLE = no # Audio output