aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-05-28 23:50:16 +0200
committerTectu <joel@unormal.org>2012-05-28 23:50:16 +0200
commitda85b990445e4b8127c14dd2b9cb769f36eb171c (patch)
tree7d738b4d86d812204024fe852c1a776b253b2d31
parent2fddb0f8edde0c5029f3d4e32be0a41a791469a9 (diff)
downloaduGFX-da85b990445e4b8127c14dd2b9cb769f36eb171c.tar.gz
uGFX-da85b990445e4b8127c14dd2b9cb769f36eb171c.tar.bz2
uGFX-da85b990445e4b8127c14dd2b9cb769f36eb171c.zip
fixes
-rwxr-xr-xglcd.c22
-rwxr-xr-xglcd.h6
2 files changed, 14 insertions, 14 deletions
diff --git a/glcd.c b/glcd.c
index 35022fe6..321b5acf 100755
--- a/glcd.c
+++ b/glcd.c
@@ -147,7 +147,7 @@ void lcdClear(uint16_t color) {
Set_CS;
}
-uint16_t lcdGetPoint(uint16_t x,uint16_t y) {
+uint16_t lcdGetPoint(uint16_t x, uint16_t y) {
uint16_t dummy;
lcdSetCursor(x,y);
@@ -163,9 +163,9 @@ uint16_t lcdGetPoint(uint16_t x,uint16_t y) {
return lcdBGR2RGB(dummy);
}
-void lcdDrawPixel(uint16_t x,uint16_t y,uint16_t point) {
- lcdSetCursor(x,y);
- lcdWriteReg(0x0022,point);
+void lcdDrawPixel(uint16_t x, uint16_t y, uint16_t point) {
+ lcdSetCursor(x, y);
+ lcdWriteReg(0x0022, point);
}
void lcdDrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) {
@@ -230,9 +230,9 @@ void lcdDrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t co
}
}
-void lcdChar(unsigned short x,unsigned short y,unsigned char c,unsigned short charcolor,unsigned short bkcolor) {
- unsigned short i=0;
- unsigned short j=0;
+void lcdChar(uint16_t x, uint16_t y, unsigned char c, uint16_t charcolor, uint16_t bkcolor) {
+ uint16_t i = 0;
+ uint16_t j = 0;
unsigned char buffer[16];
unsigned char tmp_char=0;
GetASCIICode(buffer,c);
@@ -253,7 +253,7 @@ void lcdChar(unsigned short x,unsigned short y,unsigned char c,unsigned short ch
}
}
-void lcdString(uint16_t x, uint16_t y, uint8_t *str,uint16_t color, uint16_t bkcolor) {
+void lcdString(uint16_t x, uint16_t y, uint8_t *str, uint16_t color, uint16_t bkcolor) {
uint8_t TempChar;
do {
@@ -305,8 +305,8 @@ void lcdFillArea2(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t c
Set_CS;
}
-void lcdDrawRect(uint8_t x0, uint16_t y0, uint8_t x1, uint16_t y1, uint8_t filled, uint16_t color) {
- uint8_t i,TempX;
+void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t filled, uint16_t color) {
+ uint16_t i, TempX;
uint16_t j, TempY;
if (x0 > x1) {
@@ -331,7 +331,7 @@ void lcdDrawRect(uint8_t x0, uint16_t y0, uint8_t x1, uint16_t y1, uint8_t fille
}
}
-void lcdDrawCircle(uint8_t x, uint16_t y, uint16_t radius, uint8_t filled, uint16_t color) {
+void lcdDrawCircle(uint16_t x, uint16_t y, uint16_t radius, uint8_t filled, uint16_t color) {
int16_t a, b, P;
a = 0;
b = radius;
diff --git a/glcd.h b/glcd.h
index a344a1cf..afa5c628 100755
--- a/glcd.h
+++ b/glcd.h
@@ -53,12 +53,12 @@ uint16_t lcdGetPoint(uint16_t x,uint16_t y);
void lcdSetOrientation(uint8_t newOrientation);
void lcdDrawPixel(uint16_t x,uint16_t y,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);
-void lcdDrawCircle(uint8_t x, uint16_t y, uint16_t radius, uint8_t filled, uint16_t color);
+void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t filled, uint16_t color);
+void lcdDrawCircle(uint16_t x, uint16_t y, uint16_t radius, uint8_t filled, uint16_t color);
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 x, uint16_t y, uint8_t *str,uint16_t color, uint16_t bkcolor);
-void lcdChar(unsigned short x,unsigned short y,unsigned char c,unsigned short charcolor,unsigned short bkcolor);
+void lcdChar(uint16_t x, uint16_t y, unsigned char c, uint16_t charcolor, uint16_t bkcolor);
#endif