This is the quick start guide for the PIO Driver, with step-by-step instructions on how to configure and use the driver for specific use cases.
The section described below can be compiled into e.g. the main application loop or any other function that will need to interface with the IO port.
This section will present a basic use case for the PIO driver. This use case will configure pin 23 on port A as output and pin 16 as an input with pullup, and then toggle the output pin's value to match that of the input pin.
Add to the application initialization code:
Set the state of output pin 23 to match input pin 16: