Closed per1234 closed 8 years ago
I've merged your pull request and will push a new version tonight. I haven't looked into it yet, but why do you think the direct port access macros use about twice as much space? Perhaps adding a direct port access method would be more efficient?
Previously, the code only supported the arduino:standard variant and non-AVRs. This change causes the standard Arduino digital I/O functions to be used for all other AVRs.
I have reconsidered my previous pull request and removed the direct port access macros for ATmega32u4. The reason is that although they are significantly faster than the Arduino functions, they also significantly increase the program size, even after some refactoring to make them smaller and faster.
Using Arduino IDE 1.6.9 with Pro Micro: