Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.
Dependencies: Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo
Diff: UI/LCD/Bargraph.h
- Revision:
- 0:826c6171fc1b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UI/LCD/Bargraph.h Wed Jun 20 14:57:48 2012 +0000 @@ -0,0 +1,30 @@ +#ifndef __BARGRAPH_H +#define __BARGRAPH_H + +#include "SerialGraphicLCD.h" + +class Bargraph { +public: + Bargraph(int x, int y, int size, char name); + Bargraph(int x, int y, int size, int width, char name); + void init(void); + void calibrate(float min, float max); + void update(float value); + void update(int value); + + static SerialGraphicLCD *lcd; + +private: + int _x; + int _y; + int _x2; + int _y2; + int _s; + int _w; + float _min; + float _max; + char _n; + int _last; +}; + +#endif \ No newline at end of file