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: flow.h
- Revision:
- 0:958e045ea7d1
diff -r 000000000000 -r 958e045ea7d1 flow.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/flow.h Fri Mar 22 10:31:21 2019 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+AnalogIn flowIn(A0);
+
+float flowVal;
+
+float flow(){
+ while(1){
+ flowVal=3.3*flowIn; //Logic level 3.3
+ return flowVal;
+ }
+}
\ No newline at end of file