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: m3Dpi MQTT-Thermostat-example Final_project_Tran Final_project_Tran ... more
Diff: Effect.h
- Revision:
- 2:ed46f45e1d66
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Effect.h Thu Oct 08 21:43:02 2015 +0000 @@ -0,0 +1,28 @@ + +#include "RGB.h" + +#ifndef EFFECT_H +#define EFFECT_H + +class Effect{ + protected: + + float speed; + RGB* led; + + void flash(Color * color, float onTime, float offTime); + void flash(int color, float onTime, float offTime); + + public: + + Effect(RGB* led); + + void setSpeed(float speed); + float getSpeed(); + + virtual void run() = 0; + virtual void reset(); + +}; + +#endif \ No newline at end of file