mbed-os

Fork of mbed-os by erkin yucel

Revision:
0:f269e3021894
diff -r 000000000000 -r f269e3021894 features/unsupported/tests/benchmarks/mbed/main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/features/unsupported/tests/benchmarks/mbed/main.cpp	Sun Oct 23 15:10:02 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+DigitalOut out(p5);
+#if defined(TARGET_LPC1114)
+AnalogIn in(p20);
+#else
+AnalogIn in(p19);
+#endif
+
+int main() {
+    while(1) {
+        if(in > 0.5) {
+            out = !out;
+        }
+    }
+}