PsiSwarm Library  0.8
Animations Class Reference

#include <animations.h>

Public Member Functions

void vibrate (void)
 
void led_run1 (void)
 
void set_colour (char colour)
 

Detailed Description

The Animations class contains simple predefined LED animations and dances

Definition at line 32 of file animations.h.

Member Function Documentation

§ led_run1()

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.

§ set_colour()

void Animations::set_colour ( char  colour)

Sets the colour for single-colour LED animations (default = 1)

Parameters
colourThe colour LED to use in the animation (1 = red, 2 = green, 3 = orange)

Definition at line 31 of file animations.cpp.

§ vibrate()

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.


The documentation for this class was generated from the following files: