simple RGB led library

Dependents:   m3Dpi MQTT-Thermostat-example Final_project_Tran Final_project_Tran ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HeartBeatEffect.h Source File

HeartBeatEffect.h

00001 
00002 #include "Effect.h"
00003 
00004 #ifndef HEARTBEATEFFECT_H
00005 #define HEARTBEATEFFECT_H
00006 
00007 class HeartBeatEffect : public Effect
00008 {
00009 
00010     int updown;
00011     int brightness;
00012 
00013     void setLight(int value);
00014     int saturate(int value);
00015     void changeDirection();
00016 
00017 public:
00018 
00019     HeartBeatEffect(RGB* led);
00020 
00021     virtual void run();
00022 };
00023 
00024 #endif