With the Qwiic GPIO Python Package installed, we can start working with the examples included with it. In this
section we'll go over each example and highlight pertinent bits of code. To run the examples, download or copy the
code into a file then open/save the example file (if needed) and execute the code in your preffered Python IDE.
Qwiic GPIO Example 1
This example sets up all eight I/O pins as outputs and toggles them on and off each second. Note you need to
define the mode of each pin as well as call
setMode
to write the configuration to the Qwiic GPIO. Copy the code
below and execute it in your chosen Python IDE.