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.
Revision 0:aa60e0772af6, committed 2017-06-07
- Comitter:
- BillyGrande
- Date:
- Wed Jun 07 14:55:01 2017 +0000
- Child:
- 1:924bead61d21
- Commit message:
- Read volt
Changed in this revision
--- /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