![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
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
UI/LCD/lcd.cpp
- Committer:
- shimniok
- Date:
- 2018-11-30
- Revision:
- 25:bb5356402687
- Parent:
- 0:a6a169de725f
File content as of revision 25:bb5356402687:
#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); } */