This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import this effect in your light module to use it | |
# You have to change the id in line 15 and/or set an id for your LED module | |
# The time-variable exist to make multiple ESPs start from 0 even if they ran the effect before so they are in sync | |
# You can delete it if you only have one LED Strip | |
- lambda: | |
name: Rainbow | |
update_interval: 3s # If you change this, also have to edit line 11 for correct time handling | |
lambda: |- | |
static int state = 0; | |
static uint32_t time = millis(); |