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.
Diff: main.cpp
- Revision:
- 0:14f8cb177d4d
- Child:
- 1:a52a5d5b2ce2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Oct 16 02:31:03 2010 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p10, p12, p15, p16, p29, p30, TextLCD::LCD20x4); // rs, e, d0-d3
+AnalogIn ain(p20);
+
+
+int main() {
+ while(1) {
+ lcd.printf("voltage is %.3f\n",ain.read());
+}}
\ No newline at end of file