Veza_sa_racunalom

Files at this revision

API Documentation at this revision

Comitter:
benqeman
Date:
Fri May 07 11:42:13 2021 +0000
Commit message:

Changed in this revision

Veza_s_racunalom.cpp Show annotated file Show diff for this revision Revisions of this file
Veza_s_racunalom.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Veza_s_racunalom.cpp	Fri May 07 11:42:13 2021 +0000
@@ -0,0 +1,8 @@
+#include "Veza_s_racunalom.h"
+//Definicija serijske komunikacije s računalom
+Serial pc(USBTX, USBRX, 9600); 
+
+//Funkcija za slanje vrijednosti na racunalo
+void Slanje(float MjTemp, float ZelTemp){        
+        pc.printf("Zadana temp: %.0f Mjerena temp: %.0f\n\r",ZelTemp,MjTemp);
+    }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Veza_s_racunalom.h	Fri May 07 11:42:13 2021 +0000
@@ -0,0 +1,8 @@
+#ifndef VEZA_S_RACUNALOM_H
+#define VEZA_S_RACUNALOM_H
+#include "mbed.h"
+
+extern Serial pc; 
+void Slanje(float MjTemp,float ZelTemp);
+
+#endif
\ No newline at end of file