digitalRead()
Digital input function
Reads the value of a port configured as input.
static inline E_PIN_STATE digitalRead(uint8_t u8pin)
You can get the input value of a pin previously configured as input as LOW
or HIGH
.
Since the conversion operator from
E_PIN_STATE
type to int
type is not defined, direct assignment to a numeric type is not possible.