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:e2c8a8062bb5, committed 2013-05-24
- Comitter:
- robt
- Date:
- Fri May 24 21:34:47 2013 +0000
- Commit message:
- by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"
Changed in this revision
diff -r 000000000000 -r e2c8a8062bb5 TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Fri May 24 21:34:47 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r e2c8a8062bb5 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri May 24 21:34:47 2013 +0000
@@ -0,0 +1,18 @@
+
+/*Program Example 8.7: Display analog input data
+ */
+#include "mbed.h"
+#include "TextLCD.h"
+TextLCD lcd(p19, p20, p21, p22, p23, p24); //rs,e,d0, d1,d2,d3
+AnalogIn Ain(p17);
+float percentage;
+
+int main() {
+ while(1){
+ percentage=Ain*100;
+ lcd.printf("%1.2f",percentage);
+ wait(0.002);
+ lcd.cls();
+ }
+}
+
diff -r 000000000000 -r e2c8a8062bb5 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 24 21:34:47 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912 \ No newline at end of file