PyRaspBeta

← All practice problems

Raspberry Pi practice problem · Displays

Night light

EasyBudget $10Python · gpiozero

A NeoPixel stick (8 LEDs, DIN on GPIO18, 5 V). Make a gentle night light: all eight pixels orange (255, 128, 0) at 20 % brightness, so each pixel actually sends about (51, 26, 0).

Tip: neopixel.NeoPixel(..., brightness=0.2) scales every colour when it is shown.

More in Displays