Go Down

Topic: Fast read and write (Read 115 times) previous topic - next topic

berga123123

Hallo,

I would like to read a signal  on D1 and D2.
If D1 and D2 is High -> set D8 high and D9 low

digitalWrite and digitalRead are to slow

Are there faster options?



kind regards
Berga

westfw

Quote
Are there faster options?
Yes.  You can read and write directly to the PIO peripheral registers.  How fast do you need?
See also https://github.com/arduino/Arduino/issues/4030

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy