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
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
Are there faster options?
Yes. You can read and write directly to the PIO peripheral registers. How fast do you need?
See also digitalWrite() is embarassingly slow on Due... · Issue #4030 · arduino/Arduino · GitHub