diff options
Diffstat (limited to 'glcd.c')
-rw-r--r-- | glcd.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -80,8 +80,8 @@ void lcdInit(GLCDDriver *glcdp) { glcdp->vmt = &vmt; lld_lcdInit(); - lcd_width = SCREEN_WIDTH; - lcd_height = SCREEN_HEIGHT; + lcd_width = lcdGetWidth(); + lcd_height = lcdGetHeight(); lcdSetOrientation(portrait); lcdSetFontTransparency(transparent); @@ -104,6 +104,10 @@ static void lcdSetCursor(uint16_t x, uint16_t y) { lld_lcdSetCursor(x, y); } +void lcdSetPowerMode(uint8_t powerMode) { + lld_lcdSetPowerMode(powerMode); +} + void lcdSetOrientation(uint8_t newOrientation) { lld_lcdSetOrientation(newOrientation); } |