![]() |
Forum Index : Microcontroller and PC projects : ILI9341 touch FT6206
Author | Message | ||||
tantay Newbie ![]() Joined: 30/10/2016 Location: VietnamPosts: 15 |
Hello everybody! I am working with ILI9341 LCD and touch control FT6206(I2C).I was display LCD but touch control not work I want to create BASIC function for control touch same(I search in forum) CFUNCTION touch(INT, INT, float, float, INT,.....) 'writeCommand 000005B2 3c02bf88 24030004 ac436134 24030001 ac436134 3c02bf80 ac445820 3c03bf80 8c625810 30420080 1040fffd 3c02bf88 24030004 ac436138 3c02bf80 8c425820 03e00008 00000000 'writeData ....... END CFUNCTION I read in manual this is Embedded C Routines but i don't see instructions. Help me Sorry because my English is not good. Thanks all |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 1000 |
tantay, MMBASIC can do I2C. See the manual Appendix B for how it works. You won't need a CFUNCTION to talk I2C. Regards Gerry Latest F4 Latest H7 FotS |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
The commands built-in to MMBasic for the ILI9341 display and resistive touch screen use the SPI protocol XPT2046 touch controller, not the I2C FT6206. The XPT2046 controller chips are mostly supplied with this screen. If it is possible, the job will be much simpler if the XPT2046 touch controller is used. Greg |
||||
tantay Newbie ![]() Joined: 30/10/2016 Location: VietnamPosts: 15 |
Hi disco4now,paceman and everybody Because the ft6206 don't connect to I2C bus of microcontroller. I think i must write I2C software to talk ft6206 by C language and then convert to MMBASIC. You can help me Embedded C Routines in MMEdit? Same thread http://www.thebackshed.com/forum/forum_posts.asp?TID=8406&KW=I2c Thanks very much |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1982 |
Hi Tantay, I don't know if we understand what you are trying to do. If you just want to use the ILI9341 display with the Micromite and use the touch function built into the display you don't need any other hardware. Wire the display as per the Manual and use the pins you have used for T_CS and T_IRQ in the Option Touch command. Then use the GUI Calibrate command to calibrate the display and it should all work. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10205 |
Tantay If I understand you, the issue is that the pins on the FT6206 don't connect to the normal hardware I2C pins on the PCB you are using. What you therefore need is I2C to be bitbanged using a Cfunction? This is fine, Geoff has included Basic callable I2C CFunction routines in the normal distribution for the Micromite. The documentation and the CFunction is in the file "Embedded C Modules\I2CPort.PDF" when you download the firmware from his site. Looking forward, if all goes according to plan, V5.3 will include hooks to allow loadable touch drivers to be written in the same way as loadable display drivers ![]() |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |