Dependencies:   RgbLED mbed

Files at this revision

API Documentation at this revision

Comitter:
dtravz
Date:
Fri Apr 15 19:18:18 2016 +0000
Commit message:
RGBTester

Changed in this revision

RgbLED.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RgbLED.lib	Fri Apr 15 19:18:18 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/vandep01/code/RgbLED/#396b3f9574ea
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 15 19:18:18 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "RGBLed.h"
+
+RGBLed myled(D9,D6,D3);
+
+int main() {
+     myled.init();
+     while(1){
+     myled.setColor(1.f,0,0);
+     wait(1);
+     myled.setColor(0,1.f,0);
+     wait(1);
+     myled.setColor(0,0,1.f);
+     wait(1);}
+    }
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Apr 15 19:18:18 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file