![]() However, this won’t light up the LED right away, it just sets which LED will light up next when the Tlc.update() function will be executed. The first parameter is the address of the LED, and the second parameter is the value of brightness of the LED or the PWM value which is from 0 to 4095. The function Tlc.set() is used for setting which LED we light up. We generate random INT values from 0 to 31 and we use them as addresses for the LEDs. ![]() I organized the program into 9 different stages or light-shows of the LEDs using the switch statement.įor example, let’s take a look at the first stage. In the setup section we need to initiate the TLCs and in the loop section make the program. At the beginning we also need to define some variables needed for the program. ![]() With this done, now we can easily address all the LEDs from 0 to 31.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |