Would it be useful to make a library for digital output ? It would be specific to the processor ofcourse and use direct port manipulation,
I heard that direct access is 30-40 times faster than digital write , but would, making it into a library slow it down to where its not useful?
winner10920:
Would it be useful to make a library for digital output ? It would be specific to the processor ofcourse and use direct port manipulation,
I heard that direct access is 30-40 times faster than digital write , but would, making it into a library slow it down to where its not useful?
I think it's already been done very well: digitalWriteFast.h is about as optimal as you can get while still maintaining the abstraction that is the Arduino pin numbering.
Awesome, thanks
winner10920:
I heard that direct access is 30-40 times faster than digital write , but would, making it into a library slow it down to where its not useful?
Making things a library, per se, will not slow anything down.