diff options
author | Tectu <joel@unormal.org> | 2012-05-28 19:18:23 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-05-28 19:18:23 +0200 |
commit | 7069b4b245c5c39fa685e377fdc6d16eaa5154b4 (patch) | |
tree | 029d2618e712f14b42029ae37868412e2bc76ef7 /glcd.h | |
parent | 3b19353f88fd7a96561c410495597bdf7999433e (diff) | |
download | uGFX-7069b4b245c5c39fa685e377fdc6d16eaa5154b4.tar.gz uGFX-7069b4b245c5c39fa685e377fdc6d16eaa5154b4.tar.bz2 uGFX-7069b4b245c5c39fa685e377fdc6d16eaa5154b4.zip |
cleanups
Diffstat (limited to 'glcd.h')
-rwxr-xr-x | glcd.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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
|