RSeries astromech firmware
|
#include <core/AnimatedEvent.h>
Base class for all animated devices. AnimatedEvent::animate() is called for each device once through the main loop(). Subclasses should not call delay() or otherwise block.
Public Member Functions | |
AnimatedEvent () | |
Default Constructor. More... | |
void | setLoopDoneCallback (AnimatedLoopDone loopProc) |
virtual void | animate ()=0 |
Subclasses must implement this function to run through a single frame of animation/activity. More... | |
Static Public Member Functions | |
static void | process () |
Calls animate() for each created AnimatedEvent subclass. More... | |
|
inline |
Default Constructor.
Registers the subclass to be called from the main loop()
|
pure virtual |
Subclasses must implement this function to run through a single frame of animation/activity.
Subclasses should not call delay() or otherwise block.
Implemented in LogicEngineRenderer, TeecesFrontLogics, ServoSequencer, HoloLights< DATA_PIN, RGB_ORDER, NUM_LEDS >, HoloLights< 45, GRB, 12 >, ServoDispatchPCA9685< numServos, defaultOEValue >, TankDrive, ServoDispatchDirect< numServos >, DomeDrive, PushButton, LogicEngineController< kDelayPin, kFadePin, kBriPin, kHuePin, kPalPin, kFrontJumperPin, kRearJumperPin >, Gripper, Stance, StealthController, DataPanel, ButtonController, FireStrip< DATA_PIN, RGB_ORDER, NUM_LEDS >, MagicPanelBase, Welder, Zapper, LogicEngineController< kDelayPin, kFadePin, kBriPin, kHuePin, kPalPin, kFrontJumperPin, kRearJumperPin >, ChargeBayIndicator, AnimationPlayer, WifiMarcduinoReceiverBase< maxClients, BUFFER_SIZE >, WifiSerialBridgeBase< maxClients >, BatteryMonitor, TeecesRearLogics, AnoRotaryEncoder, PWMDecoder, I2CReceiverBase< bufferSize >, RelaySwitch, RotaryEncoder, SoftPot, DomeSensorRingSerialListener, SingleStatusLED< DATA_PIN >, ServoFeedback< NUM_SERVOS >, ResistorLadderButtons< kButtonPin, buttonVal >, ServoDecoder, HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >, HoloDisplay< DATA_PIN, RGB_ORDER, NUM_LEDS >, MarcduinoSerial< BUFFER_SIZE >, TeecesPSI, CommandEventSerial< BUFFER_SIZE >, AnalogMonitor, WifiAccess, Orientation, DelayCall, and MicrophoneAmplitude.
|
inlinestatic |
Calls animate() for each created AnimatedEvent subclass.
|
inline |