Allow initial driver settings to be overridden by the board file
This commit is contained in:
parent
2c11cc3b94
commit
dd54d42f00
2 changed files with 8 additions and 6 deletions
|
@ -65,8 +65,8 @@
|
|||
#undef GDISP_SCREEN_WIDTH
|
||||
#endif
|
||||
|
||||
#include "GE8.h"
|
||||
#include "gdisp_lld_board.h"
|
||||
#include "GE8.h"
|
||||
|
||||
#define GDISP_SCAN_LINES 132
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#define GDISP_LLD_DECLARATIONS
|
||||
#include "gdisp/lld/gdisp_lld.h"
|
||||
#include "gdisp_lld_board.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver local definitions. */
|
||||
|
@ -30,16 +31,17 @@
|
|||
#ifndef GDISP_SCREEN_WIDTH
|
||||
#define GDISP_SCREEN_WIDTH 240
|
||||
#endif
|
||||
|
||||
#define GDISP_INITIAL_CONTRAST 50
|
||||
#define GDISP_INITIAL_BACKLIGHT 100
|
||||
#ifndef GDISP_INITIAL_CONTRAST
|
||||
#define GDISP_INITIAL_CONTRAST 50
|
||||
#endif
|
||||
#ifndef GDISP_INITIAL_BACKLIGHT
|
||||
#define GDISP_INITIAL_BACKLIGHT 100
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver local functions. */
|
||||
/*===========================================================================*/
|
||||
|
||||
#include "gdisp_lld_board.h"
|
||||
|
||||
// Some common routines and macros
|
||||
#define write_reg(reg, data) { write_index(reg); write_data(data); }
|
||||
#define delay(us) gfxSleepMicroseconds(us)
|
||||
|
|
Loading…
Add table
Reference in a new issue