Library for led

RGB LED library

users/gimohd/code/LED/

[Not found]

Revision:
0:5368b27ca9d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/PoliceLight.cpp	Thu Dec 10 15:06:29 2015 +0000
@@ -0,0 +1,17 @@
+#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);
+}