Library for led
RGB LED library
users/gimohd/code/LED/
[Not found]
lib/PoliceLight.cpp
- Committer:
- gimohd
- Date:
- 2015-12-10
- Revision:
- 0:5368b27ca9d0
File content as of revision 0:5368b27ca9d0:
#include "Effect.h" #include "PoliceLight.h" #include "RGB.h" #include "Color.h" PoliceLight::PoliceLight(RGB* led) :Effect(led){ } void PoliceLight::run(){ led->setColor(Color::RED); wait_ms(500); led->setColor(Color::BLUE); wait_ms(500); }