Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:be75e629bb7b, committed 2021-05-07
- 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