commit
967f37dffe
3 changed files with 5 additions and 3 deletions
|
@ -320,7 +320,7 @@ bool_t GDISP_LLD(init)(void) {
|
|||
GDISP_LLD(writeindex)(SSD1963_SET_DISPLAY_ON);
|
||||
#if defined(LCD_USE_FSMC)
|
||||
/* FSMC delay reduced as the controller now runs at full speed */
|
||||
FSMC_Bank1->BTCR[FSMC_Bank+1] = FSMC_BTR1_ADDSET_0 | FSMC_BTR1_DATAST_1 | FSMC_BTR1_BUSTURN_0 ;
|
||||
FSMC_Bank1->BTCR[FSMC_Bank+1] = FSMC_BTR1_ADDSET_0 | FSMC_BTR1_DATAST_2 | FSMC_BTR1_BUSTURN_0 ;
|
||||
FSMC_Bank1->BTCR[FSMC_Bank] = FSMC_BCR1_MWID_0 | FSMC_BCR1_WREN | FSMC_BCR1_MBKEN;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -73,6 +73,7 @@ extern "C" {
|
|||
void tpInit(const TOUCHPADDriver *tp);
|
||||
uint16_t tpReadX(void);
|
||||
uint16_t tpReadY(void);
|
||||
void tpCalibrate(void);
|
||||
|
||||
#if TOUCHPAD_HAS_IRQ
|
||||
uint8_t tpIRQ(void);
|
||||
|
|
|
@ -196,11 +196,12 @@ uint16_t tpReadY(void) {
|
|||
}
|
||||
|
||||
void tpCalibrate(void) {
|
||||
uint16_t cross[2][2] = {{40,50}, {200, 280}};
|
||||
const uint16_t h = gdispGetHeight();
|
||||
const uint16_t w = gdispGetWidth();
|
||||
const uint16_t cross[2][2] = {{(w/8), (h/8)}, {(w-(w/8)) , (h-(h/8))}};
|
||||
uint16_t points[2][2];
|
||||
uint8_t i;
|
||||
|
||||
//gdispSetOrientation(portrait);
|
||||
gdispClear(Red);
|
||||
gdispFillStringBox(0, 10, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Red, justifyCenter);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue