looking at the wiring_digital.c of 1.8.13 I find following:
What is the reason why digitalWrite takes an uint8_t val as parameter (HIGH or LOW)
void digitalWrite(uint8_t pin, uint8_t val)
but the return value of digitalRead is defined as int?
int digitalRead(uint8_t pin)
isn't that somehow inconsistent? Or is there any reason for that?