awesome101
Well-known member
So I found a library for the STM32 on GitHub that interfaces with the ILI9341 display using the 8080 interface (https://github.com/iwalpola/Adafruit_ILI9341_8bit_STM). I ported this over to the Teensy 3.2 by using Port C bits 0 - 7 for the data bits (LCD_D0 - LCD_D7). This means I used pins 15, 22, 23, 9, 10, 13, 11, 12 for the LCD bits 0, 1, 2, 3, 4, 5, 6, and 7 accordingly; LCD_RD is 21, LCD_WR is 20, LCD_RS is 19, LCD_CS is 18, and LCD_RST is 17. For some reason when I run the example sketch, the display just starts flashing randomly. The Serial Monitor tells the following information:
Display Power Mode: 0x2
MADCTL Mode: 0x3
Pixel Format: 0x2
Image Format: 0x3
Device ID: 0x3030303
Here is my GitHub with the easy-to-understand code for the library and the sketch:
https://github.com/LudumDareDevelopment/Teensy-ILI9341-8-bit-Parallel-Library/tree/master
I think I'm really close to getting this to work. If anyone has any suggestions/fixes, feel free to share them.
Display Power Mode: 0x2
MADCTL Mode: 0x3
Pixel Format: 0x2
Image Format: 0x3
Device ID: 0x3030303
Here is my GitHub with the easy-to-understand code for the library and the sketch:
https://github.com/LudumDareDevelopment/Teensy-ILI9341-8-bit-Parallel-Library/tree/master
I think I'm really close to getting this to work. If anyone has any suggestions/fixes, feel free to share them.