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

PoliceEffect.cpp

00001 
00002 #include "PoliceEffect.h"
00003 
00004 PoliceEffect::PoliceEffect(RGB* led) : Effect(led)
00005 {
00006 
00007 }
00008 
00009 void PoliceEffect::run()
00010 {
00011     flash(Color::RED, 0.1, 0.1);
00012     flash(Color::RED, 0.1, 0.1);
00013     wait(0.2 * speed);
00014     flash(Color::BLUE, 0.1, 0.1);
00015     flash(Color::BLUE, 0.1, 0.1);
00016     wait(0.2 * speed);
00017 
00018 }