Branimir Fotak / fotopanel_1_5
Revision:
0:08be75f637b2
Child:
2:b1ba1e6b10be
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fotopanel.h	Thu Feb 06 15:51:36 2020 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+Serial pc(SERIAL_TX, SERIAL_RX);
+DigitalOut myled1(LED1);
+AnalogIn in5(A5);
+
+void fotopanel()
+{
+    while(1) {
+        float fotopanel;
+        fotopanel = in5.read();
+        pc.printf("izmjerena vrijednost: %f\n\r", fotopanel);
+        wait(0.5);
+    }
+}
+/*
+int main(){
+    while(1){
+    float fotopanel;
+    fotopanel = in0.read();
+    pc.printf("izmjerena vrijednost: %f\n\r", fotopanel);
+    wait(0.5);
+    }
+}*/
+