![](/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
Diff: UI/Display/Display.h
- Revision:
- 0:a6a169de725f
- Child:
- 20:1c2067937065
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UI/Display/Display.h Mon May 27 13:26:03 2013 +0000 @@ -0,0 +1,55 @@ +#ifndef __Display_H +#define __Display_H + +#include "SystemState.h" +#include "SerialGraphicLCD.h" +#include "Bargraph.h" + +class Display { +public: + + /** create new display instance + * + */ + Display(void); + + /** initialize the display + * + */ + void init(void); + + /** display a status string + * @param st is the status string to display + */ + void status(const char *st); + + /** display a menu item + * @param itemName is the itemName to display + */ + void menu(const char *itemName); + + /** display a selected menu item + * @param itemName is the itemName to display + */ + void select(const char *itemName); + + /** display gauge at a given position (slot) along the bottom + */ + void gauge(int slot); + + /** updates data on the display */ + void update(SystemState state); + + /** initializes the update display */ + void redraw(void); + + SerialGraphicLCD lcd; + +private: + Bargraph v; + Bargraph a; + Bargraph g1; + Bargraph g2; +}; + +#endif \ No newline at end of file