960 900 800/890
70 100 480/800
void __irq ADC_ISR(void)
buf[0][0]=800-(rADCDAT0&0x3ff)*800/890+50;x
buf[0][1]=480-(rADCDAT1&0x3ff)*480/800+50;y
Lcd_ClearScr(0xffff);
Glib_FilledRectangle( buf[0][0]-20, buf[0][1]-20,buf[0][0]+20, buf[0][1]+20,0x07e0);
------------------------------------------
void Test_Lcd_Tft_800480( void )
void xmain(void)
Touch_Screen_Init();
评论5
最新资源