Example

On the completion of installation, switch to the example folder (/home/pi/Pimoroni/piglow) and run one of the examples:

    python3 bar.py

It should run blinky light effects as shown in the following figure:

Blinky lights on the PiGlow

Similarly, there are libraries to talk to real-time clocks, LCD displays, and so on using I2C communication. If you are interested in writing your own interface that provides the nitty-gritty detail of I2C communication with sensors/output devices, check out this book's accompanying website for some examples.