aboutsummaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-04 02:22:31 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-04 02:22:31 +0200
commitf29443cd40f9050beedab3a822b6e0f24fb789cd (patch)
tree5f53eb3d8c904af00f13d58976c8d6f04ba6339e /command.c
parentaf302afcb0aaa08bd9c093b2c8ff20647a001919 (diff)
downloadtmk7637-f29443cd40f9050beedab3a822b6e0f24fb789cd.tar.gz
optimized the LED and buzzer wiring
* since we use timer 3 exclusively for the buzzer but trigger the pin using an IRQ handler, there is no longer any need to occupy a high-resolution pin for the buzzer. * PD5 became a new high resolution LED * PD0 became the new buzzer pin * rearranged the pins used for the different LEDs so that the distribution of high-resolution LEDs is symmetric * Timer 0 is no longer used/modified by setting LEDs. This avoids some workarounds as timer 0 is also used by tmk's timer module. * The song routines could be slightly improved using the timer module. * documented the LED and buzzer pinout in README
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 6827706..cb0c270 100644
--- a/command.c
+++ b/command.c
@@ -38,7 +38,7 @@ bool command_extra(uint8_t code)
dprintf("new keyclick mode: %u\n", keyclick_mode);
/* FIXME: Perhaps do this in matrix_scan() */
keyclick_solenoid_set(false);
- pwm_pb5_set_tone(0);
+ pwm_pd0_set_tone(0);
/* update the keyclick mode LED */
led_set(host_keyboard_leds());
return true;