The LED class constructs objects that represent a single LED attached to the physical Jewelbot. There are 4 LEDs total that are connected to the Jewelbot.
In order to use the LED functions, you first need to initialize the library. This tells your program that you want to code around the LEDs, then you can use the functions below to do cool things with LEDs!
The different functions are called the "API", because they are the way you interact with the device. APIs are ways you can work with different interfaces, sometimes in a computer and sometimes online.
To activate a particular LED, you need to tell your program which LED you want to work with. In order to do that, you will use the values NE, NW, SE, SW. Those stand for the directions North East, North West, South East, South West.
There are also lots of different colors you can make your Jewelbots light up! The list of color names you can use are:
RED, GREEN, BLUE, MAGENTA, YELLOW, CYAN, WHITE, ORANGE, GOLD, PURPLE, PERIWINKLE, ROSE, OCEAN, and SKY.
This function turns on a single LED of the Jewelbot.
This function turns on all the LEDs on the Jewelbot.
This function turns off a single LED of the Jewelbot.
This function turns off all the LEDs on the Jewelbot.
This function turns on the LED for a set amount of time and then turns off.
This function turns on all the LEDs for a set amount of time and then turns them off.