LED.h & Umwandeln.h

Dependencies:   m3pi_ng mbed

Revision:
0:d453d7554981
diff -r 000000000000 -r d453d7554981 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jan 11 09:43:00 2017 +0000
@@ -0,0 +1,39 @@
+#include "mbed.h"
+#include "m3pi_ng.h"
+//#include "Umwandeln.h"
+#include "LED.h"
+m3pi pi;
+
+
+int main()
+{
+    //umwandeln A;
+    LED B;
+    pi.sensor_auto_calibrate();
+    int sensors[5]={};
+    while (1){
+        pi.calibrated_sensor(sensors);
+        if ((sensors[0]>400) && (sensors[4]>400))
+        B.Blau_Blinken(2,0.2);
+    }
+}
+//0=weiß 1000=schwarz 
+/*
+int main()
+{
+
+    umwandeln A;
+    pi.sensor_auto_calibrate();
+    int sensors[5]={};
+    
+    
+    while (1)
+    {
+    pi.calibrated_sensor(sensors);
+    pi.printf(A.int_umwandeln(sensors[0]));
+    wait(0.1);
+    pi.cls();
+    }
+
+}
+*/
\ No newline at end of file