The final project of Embedde class.
Diff: C12832_lcd.h
- Revision:
- 3:468cdccff7af
- Parent:
- 1:66dd8afbfd06
- Child:
- 5:0f53e522a2bf
- Child:
- 11:1d68011a277c
diff -r bdc53502af17 -r 468cdccff7af C12832_lcd.h --- a/C12832_lcd.h Thu Oct 18 20:54:09 2012 +0000 +++ b/C12832_lcd.h Thu Oct 25 17:34:34 2012 +0000 @@ -197,7 +197,20 @@ * @param y y-position */ void locate(int x, int y); + + /** setup auto update of screen + * + * @param up 1 = on , 0 = off + * if switched off the program has to call copy_to_lcd() + * to update screen from framebuffer + */ + void C12832_LCD::set_auto_up(unsigned int up); + /** get status of the auto update function + * + * @returns if auto update is on + */ + unsigned int C12832_LCD::get_auto_up(void); /** Vars */ SPI _spi; @@ -271,6 +284,7 @@ unsigned int char_y; unsigned char buffer[512]; unsigned int contrast; + unsigned int auto_up; };