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:d86587ed9b1c
- Child:
- 1:b7c052bec578
diff -r 000000000000 -r d86587ed9b1c main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Jul 28 04:49:01 2014 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p24, p26, p27, p28, p29, p30); // rs, e, d4-d7
+AnalogIn ain(p15);
+
+int main() {
+ float adc;
+
+ while (1){
+ lcd.locate(0,0);
+ lcd.printf("%8.3f \n", ain.read());
+ wait(0.05); // 20Hz update rate
+ }
+}
\ No newline at end of file