class LedRingAnimations:
Object which implements control method for the Led ring
Method | __init__ |
Undocumented |
Method | alternate |
The different colors are alternated one after the other. If iterations is 0, do it indefinitely |
Method | blackout |
Black out every led, without stopping previous function |
Method | breath |
Leds turn on like a loading circle, and are all turned off at the same time If iterations is 0, do it indefinitely |
Method | breath |
Undocumented |
Method | chase |
Movie theater light style chaser animation. If iterations is 0, do it indefinitely |
Method | color |
Wipe color across, light a Led at a time. Similar to goUp, but Leds are not turned off at the end. |
Method | custom |
Sets all Leds to a color at once |
Method | fade |
Undocumented |
Method | flashing |
Flash a color according to a frequency |
Method | get |
Return a list of size self.led_count, containing the current rgb color [r, g, b] of each Led in the real led ring |
Method | go |
Leds turn on like a loading circle, and are all turned off at the same time If iterations is 0, do it indefinitely |
Method | go |
Leds turn on like a loading circle, and turn off the same way If iterations is 0, do it indefinitely |
Method | init |
Undocumented |
Method | init |
Undocumented |
Method | is |
Undocumented |
Method | none |
Turn off leds, in simu and in real, with the "solid" method |
Method | notify |
trigger a function in the observer (led ring node) class |
Method | rainbow |
Draw rainbow that fades across all Leds at once If iterations is 0, do it indefinitely |
Method | rainbow |
Rainbow chase animation If iterations is 0, do it indefinitely |
Method | rainbow |
Draw rainbow that uniformly distributes itself across all Leds If iterations is 0, do it indefinitely |
Method | register |
Used to add the led ring node as an observer of this class |
Method | set |
Iterate over all leds, set them to the chosen color and show them all at once. "range_" must be filled only if we want to iterate over a part of the led ring. "index_delta" is used by "chase" methods only. |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | set |
Set the color of a pixel, in simu or in real |
Method | set |
Undocumented |
Method | show |
Display all Led's values previously set, in simu or in real |
Method | snake |
Undocumented |
Method | solid |
Sets all Leds to a color at once |
Method | stop |
Stop iteration (and endless iteration) for functions that perform continous action like alternate_color, and wait until the previous function is finished. Used when launched in robot status display mode... |
Method | was |
Undocumented |
Instance Variable | current |
Undocumented |
Instance Variable | current |
Undocumented |
Instance Variable | current |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | led |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | led |
Undocumented |
Instance Variable | LED |
Undocumented |
Instance Variable | off |
Undocumented |
Instance Variable | strip |
Undocumented |
Method | __play |
Undocumented |
Method | __rainbow |
Undocumented |
Method | __sleep |
Undocumented |
Method | __wipe |
Undocumented |
Instance Variable | __animation |
Undocumented |
Instance Variable | __is |
Undocumented |
Instance Variable | __led |
Undocumented |
Instance Variable | __stop |
Undocumented |
Instance Variable | _observers |
Undocumented |
Leds turn on like a loading circle, and are all turned off at the same time If iterations is 0, do it indefinitely
Return a list of size self.led_count, containing the current rgb color [r, g, b] of each Led in the real led ring
Leds turn on like a loading circle, and are all turned off at the same time If iterations is 0, do it indefinitely
Leds turn on like a loading circle, and turn off the same way If iterations is 0, do it indefinitely
Draw rainbow that uniformly distributes itself across all Leds If iterations is 0, do it indefinitely
Iterate over all leds, set them to the chosen color and show them all at once. "range_" must be filled only if we want to iterate over a part of the led ring. "index_delta" is used by "chase" methods only.
Stop iteration (and endless iteration) for functions that perform continous action like alternate_color, and wait until the previous function is finished. Used when launched in robot status display mode. Indeed, when used by the user, the previous function is stopped before, in the start thread function