Timeline for How to access GPIO pins on Atmega with memory mapping?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 14, 2019 at 2:04 | comment | added | Bruce Abbott | @ChrisStratton - yes, but then the code becomes less general purpose. The code will ultimately be used to "control a LED cube which will work quite differently", implying that it might not just set bits sequentially. | |
Dec 14, 2019 at 2:00 | comment | added | TomServo | @ChrisStratton Excellent answer! | |
Dec 14, 2019 at 1:43 | comment | added | Chris Stratton | Even without a barrel shifter the asker's current sequential access can be accomplished with a simple single bit shift per iteration and a small amount of logic where the port address changes. | |
Dec 14, 2019 at 1:01 | vote | accept | C. K. | ||
Dec 14, 2019 at 0:05 | comment | added | C. K. | I guess this is the best I can do then! I'm wondering how it compares to the digitalWrite function in Arduino, which is terrible. I will run some tests! | |
Dec 13, 2019 at 22:01 | history | answered | Bruce Abbott | CC BY-SA 4.0 |