Closed caiser01 closed 1 year ago
Thanks, is a trivial thing to fix - it looks like I just didn't copy over the pullup register table from the clockwise variant (the final 4 classic tinies had a separate PUEx register for each port that controlled the pullups, instead of (PUE = PORT & ~DDR) like the rest of the classic AVRs). Right now I need to prioritize DxCore and get an emergency fix out, as I just discovered this week that PWM is busted over there, like, almost all of it is dead as a doornail, and what does work doesn't work as intended or documented, and no version that supports the DDs has working PWM.
Should be fixed in github now.
Using v2.0.0-dev, if one tries to build the simple example below for the ATtiny841/441 with the pin mapping set to 'Legacy (counterclockwise)'...
...one gets the follwing build errors:
Changing the pin mapping to 'Standard (clockwise)' allows the code to compile without issue.
With the pin mapping set to 'Legacy (counterclockwise)', you can also make the code compile by commenting out the pinMode and DigitalWrite lines OR the analogRead line.
I've tried both the 'No Bootloader' and Optiboot variants of the ATtiny841/441 and the behavior is the same. I also spot checked a couple of other devices that support changing the pin mapping such as the ATtiny84 and they did not exhibit this issue so it may be specific to the ATtiny841/441.