Water control / Mbed 2 deprecated Water_pump

Dependencies:   DRV88255 mbed

Files at this revision

API Documentation at this revision

Comitter:
BillyGrande
Date:
Wed Jun 07 14:55:01 2017 +0000
Child:
1:924bead61d21
Commit message:
Read volt

Changed in this revision

TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
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/TextLCD.lib	Wed Jun 07 14:55:01 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/simon/code/TextLCD/#308d188a2d3a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jun 07 14:55:01 2017 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "TextLCD.h"
+ 
+TextLCD lcd(p25, p26, p24, p23, p22, p21); // rs, e, A4-A7
+DigitalIn sw1(p5); 
+AnalogIn sal(p15); 
+ 
+int main() {
+    while(1){
+        lcd.cls();
+       /* lcd.printf("Switch One is \n");
+        if(sw1==true){
+            lcd.printf("On");
+        }
+        else{
+            lcd.printf("Off");
+        }*/
+        lcd.printf("Vout = %f", 3.3*sal.read());
+        wait(0.2);
+   }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jun 07 14:55:01 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/86740a56073b
\ No newline at end of file