Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PsiSwarm_V8_Blank_CPP Autonomia_RndmWlk
Fork of PsiSwarmV7_CPP by
Animations Class Reference
The Animations class contains simple predefined LED animations and dances. More...
#include <animations.h>
Public Member Functions | |
| void | vibrate (void) |
| Make the robot vibrate (turn rapidly left & right) for approximately 1 second with LED flashes; restores LED states after action. | |
| void | 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. | |
| void | set_colour (char colour) |
| Sets the colour for single-colour LED animations (default = 1) | |
Detailed Description
The Animations class contains simple predefined LED animations and dances.
Definition at line 32 of file animations.h.
Member Function Documentation
| void 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 set_colour | ( | char | colour ) |
Sets the colour for single-colour LED animations (default = 1)
- Parameters:
-
colour The colour LED to use in the animation (1 = red, 2 = green, 3 = orange)
Definition at line 31 of file animations.cpp.
| void 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.
Generated on Tue Jul 12 2022 21:11:24 by
1.7.2
