digitalRead output port

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

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.