DIO pin matching
This page presents the pin matching used by the DIO (Digital I/O) library (and therefore by most other libraries of the Dooba ecosystem).
While ioNode users (or anyone targeting an ATMEGA1284P) should never have to worry about this, it becomes relevant when using other chips.
For example, the very common ATMEGA328P chip has less GPIO than the ATMEGA1284P. When using different chips, not all DIO pins will be available.
Always refer to the datasheet for your specific microcontroller to determine which ports/pins are available.
The table below present which AVR pin ID (in terms of port and pin number) corresponds to each DIO pin.
|DIO pin||AVR port/pin|