Skip to content

How to setup a LED object

jim edited this page Apr 10, 2026 · 4 revisions

To set up a LED object you will need to create a variable which its value will need to be the LedLab() class. The first parameter is the digital pin number of the LED and the second is the name (which is optional).

e.g.

led1 = LedLab(1, name="test_led")

Or

led1 = LedLab(1, "test_led")

Clone this wiki locally