RGB Lights
The StudioBot has 4 RGB lights under the display. We can use these lights to show colours and signal output to the user.
import time
import board
from StudioBot import *
# RGB. values (Red, Green, Blue)
neopixel.set_color(255,0,0)
neopixel.set_brightness(0.2)
time.sleep(2)
neopixel.set_color(0,255,0)
time.sleep(2)
neopixel.set_color(0,0,255)
time.sleep(2)
Last updated