Sosa
Revision 0:af7b404a4e12, committed 2014-09-17
- Comitter:
- ReneCA
- Date:
- Wed Sep 17 15:47:44 2014 +0000
- Commit message:
- Sosa;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Wed Sep 17 15:47:44 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Sep 17 15:47:44 2014 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p20,p19,p21,p22,p23,p24); //rs,e,d4,d5,d6,d7
+int s,m,h;
+
+int main() {
+ while(1){
+ for(h=0;h<24;h++){
+ for(m=0;m<60;m++){
+ for(s=0;s<60;s++){
+ wait(1);
+ lcd.locate(0,1);
+ lcd.printf("Reloj: %2d:%2d:%2d",h,m,s);
+ }
+ }
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Sep 17 15:47:44 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013 \ No newline at end of file