aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hardwareabstraction/handwire
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hardwareabstraction/handwire')
-rw-r--r--keyboards/hardwareabstraction/handwire/handwire.c10
-rw-r--r--keyboards/hardwareabstraction/handwire/keyboard.json (renamed from keyboards/hardwareabstraction/handwire/info.json)11
-rw-r--r--keyboards/hardwareabstraction/handwire/rules.mk7
3 files changed, 15 insertions, 13 deletions
diff --git a/keyboards/hardwareabstraction/handwire/handwire.c b/keyboards/hardwareabstraction/handwire/handwire.c
index 4981e703e4..d5ebd6ac13 100644
--- a/keyboards/hardwareabstraction/handwire/handwire.c
+++ b/keyboards/hardwareabstraction/handwire/handwire.c
@@ -28,7 +28,7 @@ enum custom_keycodes{
// Documentation: custom_quantum_functions.md
void keyboard_post_init_kb(void){
- setPinOutput(BUZZER_PIN);
+ gpio_set_pin_output(BUZZER_PIN);
keyboard_post_init_user();
}
@@ -36,7 +36,7 @@ void housekeeping_task_kb(void){
if(buzzer_on){
if(buzzer_active && timer_elapsed(buzzer_timer) > buzzer_dwell){
buzzer_active = false;
- writePinLow(BUZZER_PIN);
+ gpio_write_pin_low(BUZZER_PIN);
}
}
housekeeping_task_user();
@@ -50,7 +50,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if(!buzzer_active){
buzzer_active = true;
buzzer_timer = timer_read();
- writePinHigh(BUZZER_PIN);
+ gpio_write_pin_high(BUZZER_PIN);
}
}
@@ -94,10 +94,10 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if(buzzer_on == true){
buzzer_active = true;
buzzer_timer = timer_read();
- writePinHigh(BUZZER_PIN);
+ gpio_write_pin_high(BUZZER_PIN);
}
else{
- writePinLow(BUZZER_PIN);
+ gpio_write_pin_low(BUZZER_PIN);
}
break;
diff --git a/keyboards/hardwareabstraction/handwire/info.json b/keyboards/hardwareabstraction/handwire/keyboard.json
index 6fa33228df..225712dcc4 100644
--- a/keyboards/hardwareabstraction/handwire/info.json
+++ b/keyboards/hardwareabstraction/handwire/keyboard.json
@@ -10,7 +10,16 @@
"console": false,
"extrakey": true,
"mousekey": true,
- "nkro": true
+ "nkro": true,
+ "haptic": true,
+ "oled": true,
+ "wpm": true
+ },
+ "haptic": {
+ "driver": "solenoid"
+ },
+ "build": {
+ "lto": true
},
"matrix_pins": {
"cols": ["F0", "F1", "F4", "F5", "F6", "F7", "C7", "C6", "B6", "B5", "B4", "D7", "D6", "D4"],
diff --git a/keyboards/hardwareabstraction/handwire/rules.mk b/keyboards/hardwareabstraction/handwire/rules.mk
deleted file mode 100644
index 8a33a55331..0000000000
--- a/keyboards/hardwareabstraction/handwire/rules.mk
+++ /dev/null
@@ -1,7 +0,0 @@
-LTO_ENABLE = yes
-HAPTIC_ENABLE = yes
-HAPTIC_DRIVER = solenoid
-
-OLED_ENABLE = yes
-
-WPM_ENABLE = yes