Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
Diff: UI/LCD/lcd.cpp
- Revision:
- 0:a6a169de725f
diff -r 000000000000 -r a6a169de725f UI/LCD/lcd.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UI/LCD/lcd.cpp Mon May 27 13:26:03 2013 +0000 @@ -0,0 +1,38 @@ +#include "mbed.h" +/* +void lcdInit() +{ + lcd.baud(4800); + lcd.printf("4800"); + lcd.printf("%c%c", 0x7C, 13); + lcd.baud(9600); + lcd.printf("9600"); +} + +void lcdClear() +{ + lcd.printf("%c%c",0xFE,0x01); // command, clear + wait(0.020); +} + +void lcdSetPos(int x, int y) +{ + uint8_t pos=0; + + if ( x >= 0 && x < 16 && y >= 0 && y < 2) + pos = x + y*64; + + pos |= (1<<7); + + lcd.printf("%c%c",0xFE,pos); +} + +void lcdSetSplash(const char *s1, const char *s2) +{ + lcdClear(); + lcd.printf(s1); + lcdSetPos(0,1); + lcd.printf(s2); + lcd.printf("%c%c",0x7C,0x0A); +} +*/ \ No newline at end of file