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.
Dependencies: mbed
Diff: Master_komunikacija.cpp
- Revision:
- 0:cbe5388bba8d
diff -r 000000000000 -r cbe5388bba8d Master_komunikacija.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Master_komunikacija.cpp Wed Nov 16 19:15:46 2016 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+ // copy paste kod
+
+AnalogOut out(p18);
+Serial pc(USBTX, USBRX);
+
+// u Tera Termu možemo uključiti ECHO tako da idemo Setup > Terminal > checkbox Local Echo
+
+int main() {
+
+ float value;
+
+ while(true) {
+
+ pc.printf("\n\rEnter value to send over analog out: ");
+
+ pc.scanf("%f", &value);
+
+ out = value;
+
+ wait(10);
+
+ }
+}
\ No newline at end of file