midi device enerates tones according freedom rotation

Dependencies:   MMA8451Q USBDevice mbed TSI

Files at this revision

API Documentation at this revision

Comitter:
PavelM
Date:
Tue Jul 16 13:48:47 2013 +0000
Child:
1:970adc6aae96
Commit message:
Three led blink - basic

Changed in this revision

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/main.cpp	Tue Jul 16 13:48:47 2013 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+
+DigitalOut BlueLed(LED1);
+DigitalOut GreenLed(LED2);
+DigitalOut RedLed(LED3);
+
+int main() {
+    while(1) {
+        BlueLed = 1;
+        wait(0.2);
+        BlueLed = 0;
+        wait(0.2);
+        
+        GreenLed = 1;
+        wait(0.2);
+        GreenLed = 0;
+        wait(0.2);
+        
+        RedLed = 1;
+        wait(0.2);
+        RedLed = 0;
+        wait(0.2);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jul 16 13:48:47 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17
\ No newline at end of file