From 7069b4b245c5c39fa685e377fdc6d16eaa5154b4 Mon Sep 17 00:00:00 2001 From: Tectu Date: Mon, 28 May 2012 19:18:23 +0200 Subject: cleanups --- glcd.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'glcd.h') diff --git a/glcd.h b/glcd.h index 21d8b181..579eb064 100755 --- a/glcd.h +++ b/glcd.h @@ -33,11 +33,15 @@ (( green >> 2 ) << 5 ) | \ ( blue >> 3 )) +enum orientation { Portrait = 0, Landscape = 1 }; + +uint16_t lcdReadReg(uint16_t reg); void lcdInit(void); -void lcdClear(uint16_t Color); +void lcdClear(uint16_t color); void lcdTest(void); uint16_t lcdBGR2RGB(uint16_t color); uint16_t lcdGetPoint(uint16_t Xpos,uint16_t Ypos); +void lcdSetOrientation(uint8_t orientation); void lcdDrawPixel(uint16_t Xpos,uint16_t Ypos,uint16_t point); void lcdDrawLine(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color); void lcdDrawRect(uint8_t x0, uint16_t y0, uint8_t x1, uint16_t y1, uint8_t filled, uint16_t color); @@ -45,7 +49,7 @@ void lcdDrawCircle(uint8_t x, uint16_t y, uint16_t radius, uint8_t filled, uint1 void lcdFillArea(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color); void lcdFillArea2(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color); void lcdSetWindows(uint16_t xStart,uint16_t yStart,uint16_t xLong,uint16_t yLong); -void lcdString(uint16_t Xpos, uint16_t Ypos, uint8_t *str,uint16_t Color, uint16_t bkColor); -void lcdChar(unsigned short Xpos,unsigned short Ypos,unsigned char c,unsigned short charColor,unsigned short bkColor); +void lcdString(uint16_t Xpos, uint16_t Ypos, uint8_t *str,uint16_t color, uint16_t bkcolor); +void lcdChar(unsigned short Xpos,unsigned short Ypos,unsigned char c,unsigned short charcolor,unsigned short bkcolor); #endif -- cgit v1.2.3