lcdEnableTransparentText() -> lcdSetFontTransparency()
This commit is contained in:
parent
b0b85efa18
commit
f5b9da87c9
2 changed files with 5 additions and 2 deletions
4
glcd.c
4
glcd.c
|
@ -14,6 +14,8 @@ void lcdInit(void) {
|
||||||
lcd_width = SCREEN_WIDTH;
|
lcd_width = SCREEN_WIDTH;
|
||||||
lcd_height = SCREEN_HEIGHT;
|
lcd_height = SCREEN_HEIGHT;
|
||||||
|
|
||||||
|
lcdSetOrientation(portrait);
|
||||||
|
lcdSetFontTransparency(transparent);
|
||||||
lcdSetFont(font_MediumBold);
|
lcdSetFont(font_MediumBold);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +121,7 @@ void lcdSetFont(uint8_t *fnt) {
|
||||||
font = fnt;
|
font = fnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcdEnableTransparentText(uint8_t transparency) {
|
void lcdSetFontTransparency(uint8_t transparency) {
|
||||||
tpText = transparency;
|
tpText = transparency;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
glcd.h
3
glcd.h
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
enum orientation {portrait, landscape, portraitInv, landscapeInv};
|
enum orientation {portrait, landscape, portraitInv, landscapeInv};
|
||||||
enum filled {frame, filled};
|
enum filled {frame, filled};
|
||||||
|
enum transparency {solid, transparent};
|
||||||
|
|
||||||
// For text rendering only
|
// For text rendering only
|
||||||
extern uint16_t bgcolor, fgcolor;
|
extern uint16_t bgcolor, fgcolor;
|
||||||
|
@ -53,7 +54,7 @@ void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t fil
|
||||||
void lcdDrawRectString(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, const char* str, uint16_t fontColor, uint16_t bkColor);
|
void lcdDrawRectString(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, const char* str, uint16_t fontColor, uint16_t bkColor);
|
||||||
void lcdDrawCircle(uint16_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);
|
||||||
|
|
||||||
void lcdEnableTransparentText(uint8_t transparency);
|
void lcdSetFontTransparency(uint8_t transparency);
|
||||||
void lcdSetFont(uint8_t *fnt);
|
void lcdSetFont(uint8_t *fnt);
|
||||||
void lcdDrawChar(char c);
|
void lcdDrawChar(char c);
|
||||||
void lcdPutString(const char *str);
|
void lcdPutString(const char *str);
|
||||||
|
|
Loading…
Add table
Reference in a new issue