ILI9341
CelticLord
Posts: 50
I have two boards withh the 9341 graphics controller.
The First works fine,
http://www.elecfreaks.com/store/24-tft-lcd-tft0124sp-p-785.html
but the newest one from Adafruit
https://www.adafruit.com/products/2090
does not work with the driver (Mark Tillotson) http://obex.parallax.com/search/ili9341
Can anyone resolve this, or have an updated driver?
The First works fine,
http://www.elecfreaks.com/store/24-tft-lcd-tft0124sp-p-785.html
but the newest one from Adafruit
https://www.adafruit.com/products/2090
does not work with the driver (Mark Tillotson) http://obex.parallax.com/search/ili9341
Can anyone resolve this, or have an updated driver?
Comments
1. Same graphics chip ILI9341
2. same communication methoud (SPI)
3. All pins connected and referenced correct when initialized.
4. Backlight biased and bright but blank.
Problem was no literature with Product. Found on Adafruit site.
Pads IM1 IM2 IM3 need to be soldered for SPI
All I need to do now is get the I2C for touch screen woring, don't know what the device address would be. Tryed going through all 128 (0 - 127) addresses with no luck. There are no address pins to set on the board. Has to be 0 and the I2C (jm_i2c.spin) http://obex.parallax.com/object/311 driver needs to be tweek some way or other. Any help?
Using (jm_i2c.spin) http://obex.parallax.com/object/311 driver
The touch screen has IRQ / SCL / SDA as you know.
IRQ goes low when screen touched to signal valid touch (Works),
but when it goes to I2C section of my code (Spin) to execute I2c read x(4) and y(6) addresses it locks up there. Tried all 128 (0 - 127) possible id for the touch screen chip http://www.buydisplay.com/download/ic/FT6206.pdf.
So I think, and im no expert with I2C, its the I2c code needs tweeked to run the clk at 10 - 400khz per data sheet. How I do not know.
Help Apreciated
Snippet from Adafruit page:
The capacitive touch screen controller communicates over I2C, which uses two hardwire pins. However, you can share these pins with other sensors and displays as long as they don't conflict with I2C address 0x38.
https://learn.adafruit.com/adafruit-2-dot-8-color-tft-touchscreen-breakout-v2/capacitive-touchscreen
It is not my code directly but how im trying to use the I2C by Johhny Mac. What am I doing wrong!
TSAD should be $38, ie hexadecimal, according to the Adafruit snippet I posted.
Do you have or need a pullup on SDA ?
SCL and IRQ will not need them.
1. Yes I have a 10K pullup on SDA
Have also tried a 1K. Dont have 4.7k to use
2. All connections are correct
Graphics card funtions just not when it gets to the TOUCH routine because it dose not process the I2C when it hangs in it.
I know it hangs because the clock routine is not updated due to it not returning from TOUCH
3. It is going to touch because I have an audio beep there.
Same result it hangs in Touchs I2C code