![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Usb Device Interface, protocol, and programming homework #4 Audio Control device
Dependencies: C12832_lcd USBDevice mbed
Diff: bargraph.h
- Revision:
- 0:69eb9d19fb91
- Child:
- 3:6da430f4818a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bargraph.h Tue Jul 30 22:35:10 2013 +0000 @@ -0,0 +1,25 @@ +#include "C12832_lcd.h" + +class bargraph { +public: + bargraph(C12832_LCD *inlcd,int maxlevelsIn=32,int Xin=0,int Yin=0,int widthIn=128,int heightIn=32); + + int level; + void updateBargraph(); + void setMaxLevel(int maxlevels); + void setLevel(int level); + +private: + int x; + int y; + int width; + int height; + int maxlevels; + int leveladjust; + int levelwidth; + int lastLevel; + + C12832_LCD *lcd; +}; + +