testing forking

Dependencies:   mbed

Fork of ConsolTest by Pipeline Technology Centre

Revision:
0:7f5f4575bc6f
Child:
1:860a22e395c9
diff -r 000000000000 -r 7f5f4575bc6f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 30 11:16:43 2015 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+ 
+Serial pc(USBTX, USBRX); // tx, rx
+DigitalIn input(p8);
+PwmOut led(LED1);
+ 
+float brightness = 0.0;
+ 
+int main() {
+    pc.printf("Press 'u' to turn LED1 brightness up, 'd' to turn it down\n");
+ 
+    while(1) {
+        if (input)
+        {
+            pc.printf("true");
+        }
+        else
+        {
+            pc.printf("false");
+        }
+ 
+    }
+}
\ No newline at end of file