![]() |
PsiSwarm Library
0.8
|
#include <animations.h>
Public Member Functions | |
void | vibrate (void) |
void | led_run1 (void) |
void | set_colour (char colour) |
The Animations class contains simple predefined LED animations and dances
Definition at line 32 of file animations.h.
void Animations::led_run1 | ( | void | ) |
Patterns LEDs from back to front of robot 3 times then blinks at the front; animation takes about 1 second; restores LED states after action
Definition at line 36 of file animations.cpp.
void Animations::set_colour | ( | char | colour | ) |
Sets the colour for single-colour LED animations (default = 1)
colour | The colour LED to use in the animation (1 = red, 2 = green, 3 = orange) |
Definition at line 31 of file animations.cpp.
void Animations::vibrate | ( | void | ) |
Make the robot vibrate (turn rapidly left & right) for approximately 1 second with LED flashes; restores LED states after action
Definition at line 72 of file animations.cpp.