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:a13b440d4fd1
- Child:
- 1:fd5a598caa32
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu May 23 08:09:19 2019 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+AnalogIn ain(A3);
+Serial ttl(PA_0, PA_1);
+
+int main()
+{
+
+ ttl.baud(9600);
+ float x=0;
+
+ while(1) {
+ x=3.3*ain; //Logic level 3.3
+ ttl.printf("%f\n", x);
+ }
+}