Pages: [1]   Go Down
Author Topic: digitalRead output port  (Read 281 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
Karma: 2
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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


Manchester (England England)
Offline Offline
Brattain Member
Karma: 639
Posts: 34725
Solder is electric glue
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Pages: [1]   Go Up
Jump to: