ruiqimao / qmkbuilder

Online GUI for QMK Firmware
http://kbfirmware.com
GNU General Public License v3.0
382 stars 123 forks source link

Indicator LEDs Source current option #34

Open Rozakiin opened 6 years ago

Rozakiin commented 6 years ago

In the configurator currently the Indicator LEDs are set to sink the current to turn on the LED. if (usb_led & (1 << USB_LED_CAPS_LOCK)) { DDRA |= (1 << 3); PORTA &= ~(1 << 3); } else { DDRA &= ~(1 << 3); PORTA &= ~(1 << 3); }

But there are some PCBs that source the current to turn on the LED. if (usb_led & (1 << USB_LED_CAPS_LOCK)) { DDRA |= (1 << 3); PORTA |= (1 << 3); } else { DDRA &= ~(1 << 3); PORTA &= ~(1 << 3); }

Would it be possible to add an option to let these PCBs use the tool?