Step4: Save the le by clicking the disk icon and giving the le a
name with the .py extension.
Step5: Connect Grove Chainable RGB LED to Grove UART socket on
BBG.
Step6: Run the code. You'll nd the RGB LED is changing color every
2 seconds.
Chainable RGB LED eagle le V1
103 time.sleep(2)
104 rgb_led.setColorRGB(0, 0, 255, 0)
105 time.sleep(2)
106 rgb_led.setColorRGB(0, 0, 0, 255)
107 time.sleep(2)
108 rgb_led.setColorRGB(0, 0, 255, 255)
109 time.sleep(2)
110 rgb_led.setColorRGB(0, 255, 0, 255)
111 time.sleep(2)
112 rgb_led.setColorRGB(0, 255, 255, 0)
113 time.sleep(2)
114 rgb_led.setColorRGB(0, 255, 255, 255)
115 time.sleep(2)