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

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
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34230
Solder is electric glue
View Profile
WWW
 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.
Logged

Pages: [1]   Go Up
Jump to: