Hi Al, I am trying to read the High/Low Status of a Arduino Mega, Pin 22 and 48 (both set to OUTPUT).
I thought this would work:
Serial.print(bitRead( PORTD,22)); Serial.print(","); Serial.print(bitRead( PORTD,48));
But it always gives me a : 0
I have seen people ask this question before, but I think they are all UNO. Does anyone know if this is the same command for a Mega>? Or what I am doing wrong?