Quote:
Originally Posted by kaszeta
My guess is that you're trying to read digital_io_xx variables, which aren't the inputs.
These should be rc_dig_in_xx variables instead.
|
Yes, this is correct. The digital_io_## variables just control whether a given port is to be used as an input or as an output. So, in your initialization, you'll want to set
Code:
digital_io_1 = digital_io_2 = digital_io_3 = digital_io_4 = INPUT;
Then, later, your if statements should read