more SSD1289 and touchscreen workaround
This commit is contained in:
parent
04cb37f834
commit
8515ed53f5
@ -45,8 +45,7 @@
|
||||
* @notapi
|
||||
*/
|
||||
static __inline void init_board(void) {
|
||||
/* set pin modes in case of defaults by board files have been overwritten */
|
||||
palSetBusMode(GDISP_DATA_PORT, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
palSetGroupMode(GDISP_DATA_PORT, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
palSetPadMode(GDISP_CMD_PORT, GDISP_CS, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
palSetPadMode(GDISP_CMD_PORT, GDISP_RS, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
palSetPadMode(GDISP_CMD_PORT, GDISP_WR, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
|
@ -294,7 +294,10 @@ void tsCalibrate(void) {
|
||||
int32_t px, py;
|
||||
uint8_t i, j;
|
||||
|
||||
#if GDISP_NEED_CONTROL
|
||||
gdispSetOrientation(GDISP_ROTATE_0);
|
||||
#endif
|
||||
|
||||
gdispClear(Blue);
|
||||
|
||||
gdispFillStringBox(0, 5, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Blue, justifyCenter);
|
||||
|
Loading…
Reference in New Issue
Block a user