Remove custom backlight code for PS2AVRGB boards (#7775)
* Remove custom backlight code for PS2AVRGB boards * Remove custom driver setting * BACKLIGHT_BREATHING goes in config.h, not here * Don't need to include backlight.c again here either * Turn on backlight for Canoe * Disable console on a few boards due to oversize
This commit is contained in:
parent
eb5d267e63
commit
f5209aa4e9
101 changed files with 484 additions and 2812 deletions
|
@ -16,26 +16,19 @@
|
|||
*/
|
||||
#include "quantum.h"
|
||||
|
||||
|
||||
void keyboard_pre_init_kb(void){
|
||||
//init the CAPS LOCK LED pin as an output
|
||||
setPinOutput(D1);
|
||||
//init the Backlight Pin as an output
|
||||
setPinOutput(D4);
|
||||
//call any user initialization code
|
||||
void keyboard_pre_init_kb(void) {
|
||||
led_init_ports();
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led){
|
||||
//control the caps lock LED
|
||||
if(IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)){
|
||||
//set led pin to high
|
||||
writePinHigh(D1);
|
||||
} else {
|
||||
//set to low
|
||||
writePinLow(D1);
|
||||
}
|
||||
//call any user LED functions
|
||||
led_set_user(usb_led);
|
||||
void led_init_ports(void) {
|
||||
setPinOutput(D1);
|
||||
writePinHigh(D1);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
writePin(D1, !led_state.caps_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue