ystk osw / Mbed 2 deprecated Water_Level_Sensor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
osw
Date:
Sun Apr 17 14:06:50 2022 +0000
Commit message:
1st commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Apr 17 14:06:50 2022 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+AnalogIn ain(p20);
+Serial pc(USBTX, USBRX);
+
+int main(){
+    float a;
+    while(1){
+        a = ain * 100.0f;
+        pc.printf("%f\r\n",a);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Apr 17 14:06:50 2022 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file