moved SCREEN_HEIGHT and SCREEN_WIDTH macros to glcdconf.h
This commit is contained in:
parent
38b5410f2d
commit
b3fedc8b80
3 changed files with 4 additions and 5 deletions
4
glcd.c
4
glcd.c
|
@ -11,8 +11,8 @@ const uint8_t* font;
|
|||
|
||||
void lcdInit(void) {
|
||||
lld_lcdInit();
|
||||
lcd_width = SCREEN_WIDTH;
|
||||
lcd_height = SCREEN_HEIGHT;
|
||||
lcd_width = lcdGetWidth();
|
||||
lcd_height = lcdGetHeight();
|
||||
|
||||
lcdSetOrientation(portrait);
|
||||
lcdSetFontTransparency(transparent);
|
||||
|
|
3
glcd.h
3
glcd.h
|
@ -7,9 +7,6 @@
|
|||
#include "ssd1289_lld.h"
|
||||
#include "s6d1121_lld.h"
|
||||
|
||||
#define SCREEN_WIDTH 240
|
||||
#define SCREEN_HEIGHT 320
|
||||
|
||||
#define PORTRAIT (lcdGetOrientation() == portrait || lcdGetOrientation() == portraitInv)
|
||||
#define LANDSCAPE (lcdGetOrientation() == landscape || lcdGetOrientation() == landscapeInv)
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef GLCDCONF_H
|
||||
#define GLCDCONF_H
|
||||
|
||||
#define SCREEN_WIDTH 240
|
||||
#define SCREEN_HEIGHT 320
|
||||
|
||||
/***** LCD CONTROLLER *****/
|
||||
#define LCD_USE_SSD1289
|
||||
|
|
Loading…
Add table
Reference in a new issue