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 FixedColorEffect.cpp Source File

FixedColorEffect.cpp

00001 
00002 #include "FixedColorEffect.h"
00003 
00004 FixedColorEffect::FixedColorEffect(RGB* led, Color* color) : Effect(led)
00005 {
00006     this->color = color;
00007 }
00008 
00009 FixedColorEffect::~FixedColorEffect()
00010 {
00011     delete color;
00012 }
00013 
00014 void FixedColorEffect::run()
00015 {
00016     led->setColor(color);
00017 }