Rob Dobson / Mbed 2 deprecated SpideyWallWeb

Dependencies:   EthernetInterfacePlusHostname RdWebServer mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Idler.h Source File

Idler.h

00001 #ifndef IDLER__H
00002 #define IDLER__H
00003 
00004 #include "mbed.h"
00005 #include "DrawingManager.h"
00006 
00007 class Idler
00008 {
00009     public:
00010         Idler(DigitalOut* pStatusLed, DrawingManager* pDrawingManager);
00011         static void tick();
00012         static void notIdle();
00013         static void displayStep();
00014         static void start();
00015         
00016     private:
00017         static DigitalOut* _pStatusLed;
00018         static bool _isRunning;
00019         static bool _isIdle;
00020         static unsigned int _stepCount;
00021         static DrawingManager* _pDrawingManager;
00022         static Ticker _idleTicker;
00023         static Timer _idleTimer;
00024 
00025 };
00026 
00027 #endif