is there a way to read input pins directly, without using digitalRead ?
eg. in the Arduino IDE you can read the pin status directly using :
unsigned int MyPins =PIND; // PIND is an internal register and reserved keyword
and now MyPins is the binary representation of the first 8 pins. In one instruction.
As opposed to using digital read for each pin.
eg. in the Arduino IDE you can read the pin status directly using :
unsigned int MyPins =PIND; // PIND is an internal register and reserved keyword
and now MyPins is the binary representation of the first 8 pins. In one instruction.
As opposed to using digital read for each pin.