Reading an entire microcontroller port #1535
Unanswered
espruino-discuss3
asked this question in
Electronics
Replies: 1 comment
-
Posted at 2016-05-16 by @gfwilliams Well, you can use However, something like:
Actually works pretty fast - it's not as fast as the peek, but it's loads faster than calling the function 16 different times. So much so that you're unlikely to notice the speed difference between it and peek when calling it from JS. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2016-05-16 by AlexOwen
Is it possible to read an entire port (e.g. PA0 to PA15) at once? In C it's possible, and a lot quicker than reading each pin individually. Or is this how Espruino already works when reading multiple pins?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions