A NeoPixel is a software-controlled RGB LED whose color and brightness provide immediate visual feedback for a robot. On the CRICKIT HAT, Python controls the onboard pixel through the Adafruit CRICKIT library. section 1.3.3 section 2.3
Multicolor blink
Save the blinking program as blink.py, activate the Python virtual environment, make the file executable with chmod a+x blink.py, and run it with ./blink.py. The program prints each color, displays it for 0.1 seconds, and continues until Ctrl+C stops it.
The CRICKIT HAT communicates with the Raspberry Pi through I2C using its onboard microcontroller; the Adafruit CRICKIT library handles that communication. An I2C scan identifies the connected device at address 0x49.
