OK, but I would still wonder whether this is a typo:
digitalWrite(relayPin, foo = HIGH);
I would think, does he mean:
digitalWrite(relayPin, foo == HIGH);
OK, but I would still wonder whether this is a typo:
digitalWrite(relayPin, foo = HIGH);
I would think, does he mean:
digitalWrite(relayPin, foo == HIGH);