added lcdconf.h
parent
e8c4fc8e31
commit
4c90a487f7
|
@ -1,6 +1,10 @@
|
||||||
#ifndef S6D1121_H
|
#ifndef S6D1121_H
|
||||||
#define S6D1121_H
|
#define S6D1121_H
|
||||||
|
|
||||||
#include "glcd.h"
|
#include "glcd.h"
|
||||||
|
#include "lcdconf.h"
|
||||||
|
|
||||||
|
#ifdef LCD_USE_S6D1121
|
||||||
|
|
||||||
// I/O assignments
|
// I/O assignments
|
||||||
#define LCD_BL_GPIO GPIOB
|
#define LCD_BL_GPIO GPIOB
|
||||||
|
@ -36,4 +40,5 @@ uint16_t lld_lcdGetHeight(void);
|
||||||
uint16_t lld_lcdGetWidth(void);
|
uint16_t lld_lcdGetWidth(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#ifndef SSD1289_H
|
#ifndef SSD1289_H
|
||||||
#define SSD1289_H
|
#define SSD1289_H
|
||||||
|
|
||||||
#ifndef LCD_USE_SSD1289
|
|
||||||
|
|
||||||
#include "glcd.h"
|
#include "glcd.h"
|
||||||
|
#include "lcdconf.h"
|
||||||
|
|
||||||
|
#ifdef LCD_USE_SSD1289
|
||||||
|
|
||||||
#define Set_CS palSetPad(LCD_CMD_PORT, LCD_CS);
|
#define Set_CS palSetPad(LCD_CMD_PORT, LCD_CS);
|
||||||
#define Clr_CS palClearPad(LCD_CMD_PORT, LCD_CS);
|
#define Clr_CS palClearPad(LCD_CMD_PORT, LCD_CS);
|
||||||
|
@ -27,3 +28,4 @@ uint16_t lld_lcdGetWidth(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue