added tpIRQ()

ugfx_release_2.6
Tectu 2012-06-04 00:15:38 +02:00
parent 181ce21530
commit e292bab157
2 changed files with 3 additions and 4 deletions

View File

@ -116,7 +116,7 @@ void tpCalibrate(void) {
cal[i][0] = tpReadX();
cal[i][1] = tpReadY();
while(tpIRQ());
lcdDrawRect(cross[i][0]-15, cross[i][1]-15, cross[i][0]+16, cross[i][1]+16, 1, Red);
lcdDrawRect(cross[i][0]-15, cross[i][1]-15, cross[i][0]+16, cross[i][1]+16, filled, Red);
}
for(i=0, j=0; i<3; i++) {

View File

@ -9,10 +9,9 @@
#define SET_CS(a) (TP_PORT->BSRR = 1 << (TP_CS + (a ? 0 : 16)))
void tpInit(void);
void tpWriteData(uint8_t data);
void tpDrawCross(uint16_t x, uint16_t y);
uint16_t tpReadData(void);
uint8_t tpIRQ(void);
uint16_t tpReadX(void);
uint16_t tpReadY(void);
void tpDrawCross(uint16_t x, uint16_t y);
#endif