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:dad37b1aabc1, committed 2011-01-23
- Comitter:
- christian
- Date:
- Sun Jan 23 18:48:52 2011 +0000
- Commit message:
Changed in this revision
diff -r 000000000000 -r dad37b1aabc1 TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Sun Jan 23 18:48:52 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r dad37b1aabc1 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Jan 23 18:48:52 2011 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d0-d3
+Serial pc(USBTX, USBRX); // tx, rx
+Timer t;
+
+int k=0;
+int c;
+int main()
+ {
+
+ while(1)
+ {
+ char c = pc.getc();
+ if((c == 'u') && k==0)
+ {
+ lcd.cls();
+ t.start();
+ lcd. printf("Hello\n");
+ k=1;
+ }
+ if((c == 'd') && k==1)
+ {
+ t.stop();
+ lcd.printf(" %f sec\n", t.read());
+ k=0;
+ t.reset();
+ }
+ }
+
+}
diff -r 000000000000 -r dad37b1aabc1 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jan 23 18:48:52 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e