Can I use both direct functions digitalWrite and digitalRead along with port manipulation in the same code
Such as:
void setup() {
pinMode(2, INPUT); pinMode(3, INPUT);
}
void loop() {
if ( PINE & B00100000 ) {//dosomething
}}
and does that have a positive effect on the arduino speed as I expect?
Such as:
void setup() {
pinMode(2, INPUT); pinMode(3, INPUT);
}
void loop() {
if ( PINE & B00100000 ) {//dosomething
}}
and does that have a positive effect on the arduino speed as I expect?