Go Down

Topic: digitalRead output port (Read 364 times) previous topic - next topic

jl-p

Hi,

I always use digitalRead to check the status of a digitalport instead of keeping a variable for each port.
But now i have my due and want to check the status of an output port and it won't work.
Can i do something to still use this or do i need to rewrite all my programs with extra variables

Johan

Grumpy_Mike

What won't work?
Direct port access on the Due uses 32 bit registers not the 8 bit registers of the older processors.

It is always a good idea to keep a track of what you wrote it is so much faster than reading the port.

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