TX16S touch interface working

This commit is contained in:
3djc
2020-10-08 20:40:23 +02:00
parent 49aefb49c9
commit fde097a1d6
2 changed files with 12 additions and 192 deletions
+12 -3
View File
@@ -151,18 +151,27 @@ static void LCD_NRSTConfig(void)
GPIO_Init(LCD_GPIO_NRST, &GPIO_InitStructure);
}
static void delay3(uint32_t nCount)
{
uint32_t index = 0;
for(index = (1000 * 100 * nCount); index != 0; --index)
{
__asm("nop\n");
}
}
static void lcdReset()
{
#if defined(RADIO_T18) // T18 screen has issues if NRST is ever brought low
NRST_HIGH();
#else
NRST_HIGH();
LCD_NRST_HIGH();
delay3(1);
NRST_LOW(); // RESET();
LCD_NRST_LOW(); // RESET();
delay3(20);
NRST_HIGH();
LCD_NRST_HIGH();
delay3(30);
#endif
}