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?
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?