Skip to content
Boyney edited this page Feb 6, 2023 · 2 revisions

Unbeknownst to a lot of people, the Sprig PCB actually has two LED lights on it, one at each shoulder. This isn't accessible with the normal Sprig software, but Spryg has builtin support for these.

You only need one method, spryg.set_led. It accepts thee name, which is either "L" or "R", and a state, which is True for on and False for off.

Its usage is very simple:

game.py

def run(spryg):
    spryg.set_led("L", True)
    spryg.set_led("R", False)

Clone this wiki locally