Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicator LEDs Source current option #34

Open
Rozakiin opened this issue Oct 31, 2017 · 0 comments
Open

Indicator LEDs Source current option #34

Rozakiin opened this issue Oct 31, 2017 · 0 comments

Comments

@Rozakiin
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant