v1

Dependencies:   PinDetect TextLCD mbed

Fork of SunflowerMach1 by Milan Draganic

Files at this revision

API Documentation at this revision

Comitter:
mdraganic
Date:
Mon Nov 11 14:04:12 2013 +0000
Parent:
8:4044ae40bbc1
Child:
10:0b8a98b1e6b1
Commit message:
welcome message na LCD

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 11 13:26:06 2013 +0000
+++ b/main.cpp	Mon Nov 11 14:04:12 2013 +0000
@@ -15,7 +15,7 @@
 #define serialOutputBaudrate    115200
 
 Serial pc(USBTX, USBRX);
-TextLCD lcd(p15, p16, p5, p6, p7, p8); // rs, e, d4-d7
+TextLCD lcd(p13, p14, p5, p6, p7, p8); // rs, e, d4-d7
 
 DigitalOut ledBoot(LED1);
 DigitalOut ledAz(LED3);
@@ -78,7 +78,12 @@
     pc.baud(serialOutputBaudrate);
     Motor *motorAz = new Motor(p25, p26, p24);
     Motor *motorEl = new Motor(p22, p21, p23);
-    wait_ms(500);
+    if(lcdOutputEnable) {
+        lcd.cls();
+        lcd.printf("Suncokre\n");    
+        lcd.printf("t  TVZ  \n");    
+    }
+    wait_ms(5000);
     ledBoot = 0;
 
     while(1) {