The default I2C address for the FT5336 capacitive touch driver is 0x38.
The 3.5" TFT display on this breakout supports many different modes - so many that the display itself has 50 pins. However, we think most people will really only use 2 different modes: either "SPI" mode or 8-bit mode. Each 'side' of the display has all the pins required for that mode. You can switch between modes by rewiring the display, but it cannot be used in two modes at the same time!
All logic pins, both 8-bit and SPI sides, are 3-5V logic level compatible, the 74LVX245 chips on the back perform fast level shifting so you can use either kind of logic levels. If there's data output, the levels are at 3.3V.
SPI Mode
This is what we think will be a popular mode when speed is not of the utmost importance. It doesn't use as many pins (only 4 to draw on the TFT if you skip the MISO pin), it is fairly flexible, and easy to port to various microcontrollers. It also allows using a microSD card socket on the same SPI bus. However, it's slower than parallel 8-bit mode because you have to send each bit at a time instead of 8-bits at a time. Tradeoffs!
- GND - this is the power and signal ground pin.
- 3-5V (Vin) - this is the power pin, connect to 3-5VDC - it has reverse polarity protection but try to wire it right!
- 3.3V (Vout) - this is the 3.3V output from the onboard regulator.
- CLK - this is the SPI clock input pin.
- MISO - this is the SPI Microcontroller In Serial Out pin, it's used for the SD card mostly, and for debugging the TFT display. It isn't necessary for using the TFT display which is write-only.
- MOSI - this is the SPI Microcontroller Out Serial In pin, it is used to send data from the microcontroller to the SD card and/or TFT.
- CS - this is the TFT SPI chip select pin.
- D/C - this is the TFT SPI data or command selector pin.
- RST - this is the TFT reset pin. Connect to ground to reset the TFT.
- Lite - this is the PWM input for the backlight control. It is by default pulled high (backlight on) you can PWM at any frequency or pull down to turn the backlight off.
- IM2 IM1 IM0 - these are interface control set pins. In general these pins aren't used, and instead the onboard jumper is used to change the interface to SPI or 8-bit. However, we break these out for advanced use.
- Card CS / CCS - this is the SD card chip select, used if you want to read from the SD card.
- Card Detect / CD - this is the SD card detect pin, it floats when a card is inserted, and is tied to ground when the card is not inserted. We don't use this in our code but you can use this as a switch to detect if an SD card is in place without trying to electrically query it. Don't forget to use a pull-up on this pin if so!
EYESPI
This display comes with an EYESPI connector, which is an 18pin 0.5mm pitch connector that allows you to use a flex cable to connect your display to your microcontroller in SPI mode. For more details, visit the EYESPI page.
8-Bit Mode
This mode is for when you have lots of pins and want more speed. In this mode we send 8 bits at a time, so it needs way more pins, 12 or so (8 bits plus 4 control)!
- GND - this is the power and signal ground pin.
- 3-5V (Vin)- this is the power pin, connect to 3-5VDC - it has reverse polarity protection but try to wire it right!
LCD Control Inputs
- CS - this is the TFT 8-bit chip select pin (it is also tied to the SPI mode CS pin).
- C/D - this is the TFT 8-bit data or command selector pin (it is also tied to the SPI mode C/D pin).
- WR - this is the TFT 8-bit write strobe pin. It is also connected to the SPI CLK pin.
- RD - this is the TFT 8-bit read strobe pin. You may not need this pin if you don't want to read data from the display. If it is not in use, tie it to VCC.
- RST - this is the TFT reset pin. Connect to ground to reset the TFT
- Backlite - this is the PWM input for the backlight control. It is by default pulled high (backlight on) you can PWM at any frequency or pull down to turn the backlight off
LCD Data I/O
- D0 thru D7 - these are the 8 bits of parallel data sent to the TFT in 8-bit mode. D0 is the least-significant-bit and D7 is the most significant bit (MSB).
8-Bit Mode Jumper
- IM2 - In the top center of the board, above the TFT connector, is the IM2 jumper. Soldering this jumper closed enables the 8-Bit display mode. When this jumper is open (default), SPI mode is enabled.
Capacitive Touch Pins
The FT5336 capacitive touch driver is connected over I2C. Its address is 0x38.
- SCL - I2C clock pin, connect to your microcontroller I2C clock line.
- SDA - I2C data pin, connect to your microcontroller I2C data line.
- IRQ - The capacitive touch interrupt pin. It will drop low when a touch is detected. You can use this to reduce the SPI polling.
Text editor powered by tinymce.