You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Enable all UPDI port pull-ups */
PORT(UPDI_PORT) = 0xFF;
/* Enable all LED port pull-ups, except for the LED pin */
PORT(LED_PORT) = 0xFF - (1 << LED_PIN);
Also, as an aside, on XTINY (ahem, tinyAVR 0-series and 1-series), as well as megaAVR 0-series) that doesn't even do what the comment says, as the pullup is controlled by the PINnCTRL register instead...
Definitely not intended behavior:
You have an LED_PORT and LED_PIN - but you never set DDR for it so it never turns on - it looks like you meant to do that here?
/* Enable LED */
PORT(LED_PORT) |= (1 << LED_PIN);
Bloody hell, it took me like half a dozen edits to get linebreaks into the code blocks!
The text was updated successfully, but these errors were encountered:
Maybe not an issue, but why do you do this?
Also, as an aside, on XTINY (ahem, tinyAVR 0-series and 1-series), as well as megaAVR 0-series) that doesn't even do what the comment says, as the pullup is controlled by the PINnCTRL register instead...
Definitely not intended behavior:
You have an LED_PORT and LED_PIN - but you never set DDR for it so it never turns on - it looks like you meant to do that here?
Bloody hell, it took me like half a dozen edits to get linebreaks into the code blocks!
The text was updated successfully, but these errors were encountered: