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.
Diff: main.cpp
- Revision:
- 0:cd5a90a3eafd
diff -r 000000000000 -r cd5a90a3eafd main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Nov 23 07:56:04 2019 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+Serial pc(SERIAL_TX, SERIAL_RX); // TxD, RxD Definition der Portleitung
+/* ******************** Variablendefinitionen ***************************** */
+
+AnalogIn poti(A3);
+
+float analogwert;
+BusOut vpoti(D2,D3,D6,D9,D11,D12,A6,D13);
+
+int main()
+{ pc.baud(9600);
+ while(1)
+ {
+ pc.printf("Spannung=%fV\n",(poti.read())*3.3);
+ vpoti=poti.read_u16()>>8;
+ }
+}