updated matrix and keymap

This commit is contained in:
Jack Humbert 2018-02-01 14:48:25 -05:00
parent 78ea99d154
commit fc91bf4a65
8 changed files with 79 additions and 127 deletions

View file

@ -23,8 +23,8 @@
void backlight_init_ports(void) {
printf("backlight_init_ports()\n");
#ifdef BACKLIGHT_ENABLE
palSetPadMode(GPIOB, 8, PAL_MODE_OUTPUT_PUSHPULL);
palSetPad(GPIOB, 8);
// palSetPadMode(GPIOB, 8, PAL_MODE_OUTPUT_PUSHPULL);
// palSetPad(GPIOB, 8);
#endif
}
@ -33,10 +33,10 @@ void backlight_set(uint8_t level) {
#ifdef BACKLIGHT_ENABLE
if (level == 0) {
// Turn backlight off
palSetPad(GPIOB, 8);
// palSetPad(GPIOB, 8);
} else {
// Turn backlight on
palClearPad(GPIOB, 8);
// palClearPad(GPIOB, 8);
}
#endif
}
@ -45,9 +45,9 @@ void led_set_kb(uint8_t usb_led) {
printf("led_set_kb(%d)\n", usb_led);
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
// Turn capslock on
palSetPad(GPIOB, 7);
// palSetPad(GPIOB, 7);
} else {
// Turn capslock off
palClearPad(GPIOB, 7);
// palClearPad(GPIOB, 7);
}
}