IO(x) is the simplest way to access the digital pins. Read IO(x) and the pin becomes or stays an input and the value is returned. Write to IO(x) and the pin becomes or stays and output and is set low when 0, or high for all other values.
For firmware after 8.11, IO(x) accesses the upper ports (P1 through P4), in groups of 32, IO(32) through IO(63) access P1(0) through P1(31) and so on.
|
Pin Control Functions |
|