Rewrote the calibration to cycle defined points round screen to acieve am average Y for TOP, BOTTOM and average x for LEFT, RIGHT with that and some simple maths can scale any touch sample read to be position on screenĬurrently can specify down to 8 x 8 Icon on screen and with stylas touch detecy position. The UTouch Library solution is fair, but holding the pointer still whilst sampling for a series of locations I find difficult, my customers founmd impossible. You tend to get a ghosting interrupt generated at removal of touch which if your polling will cause extra invalid readings.Ĥ I run a moving average on data during a touch event.Ĭalibration is difficult on smaller displays if you google cailibrartion algorithms for TFT touch, the matrix solution always comes out best but I cannot, however, get the SD Card and display to function simultaneously. I am currently making a project with an adafruit 3.5' display and a mega2560. The spec on the chip also highlighted that although its 12 bit resolution to ensure next value availability you should clear the buffer register by clocking 16 bits through, from memory the UTouch library only does 12 Mega2560 reading SD Card with Adafruit 3.5' tft. rather than use the polll techniues and read while low. I also used define ILI9481 in UserSetup.h. I have loaded the TFTHX8357 library which supposedly supports the ILI9481 display. I used a logic analyser to review the Texas Instrument chip used for the screen, this showed the best option seemed to be to attach the IRQ to a pin on arduino as an ege triggered interrupt. I am not having success interfacing a 3.5 inch TFT LCD shield with a Mega2560. The UTouch lIbrary in my view uses a slightly odd method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |