ILI9340/ILI9341 TFT Display

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
User avatar
on4aa
Posts: 70
Joined: Sat Nov 11, 2017 8:41 pm
Location: Europe
Contact:

Re: ILI9340/ILI9341 TFT Display

Post by on4aa » Sat Feb 03, 2018 12:17 pm

@rcolistete
rcolistete wrote:
Fri Feb 02, 2018 10:46 am
But I prefer to use Loboris MicroPython for ESP32, configured with :
https://github.com/tuupola/micropython-m5stack
Thanks, tuupola !
Thanks for the tip. I will definitely try that out.
I had seen tuupola's repository before, but had thought is was some sort of placeholder for a future project. Now, that I read his code, I understand its purpose.

Tuupola should do good writing a brief READ.ME to his project. That way more people will take the jump.
Serge

User avatar
tuupola
Posts: 54
Joined: Sun Sep 17, 2017 12:10 am
Contact:

Re: ILI9340/ILI9341 TFT Display

Post by tuupola » Sun Feb 04, 2018 12:37 pm

Added some basic documentation. I did not even know somebody had already found it :) Project is still evolving so BC breaks will happen. I only recently started coding Python (because of MicroPython) and haven't really found my coding style yet, so that might change too.

In any case I don't want to hijack this thread so I open another one for discussion related to my project.

User avatar
on4aa
Posts: 70
Joined: Sat Nov 11, 2017 8:41 pm
Location: Europe
Contact:

Re: ILI9340/ILI9341 TFT Display

Post by on4aa » Sun Feb 04, 2018 3:18 pm

tuupola wrote:
Sun Feb 04, 2018 12:37 pm
In any case I don't want to hijack this thread so I open another one for discussion related to my project.
Thanks tuupola!
For those following this trail, here is the new M5Stack thread.
Serge

ulros
Posts: 3
Joined: Wed Apr 18, 2018 8:56 am

Re: ILI9340/ILI9341 TFT Display

Post by ulros » Wed Apr 18, 2018 10:55 am

[quote=jeffm post_id=24418 time=1515245375 user_id=520]
The github repository is:
[url]https://github.com/jeffmer/micropython-ili9341[/url]
[/quote]

Hi, I am a newbie to all this and have a m5stack ESP32. I managed to install the following micro python firmware to it:
https://github.com/loboris/MicroPython_ ... D/firmware

How can I install your LCD drive so that I can write some text and display it?
Sorry for the noob question...

ProudPagan
Posts: 35
Joined: Fri Apr 12, 2019 8:55 am

Re: ILI9340/ILI9341 TFT Display

Post by ProudPagan » Tue Jun 18, 2019 3:21 am

Hi Everyone.

Has anyone got this code for (ILI9340/ILI9341 TFT Display) working on the STM32F407?

Thanks!

georgy
Posts: 1
Joined: Sat Sep 14, 2019 9:53 pm

Re: ILI9340/ILI9341 TFT Display

Post by georgy » Sat Sep 14, 2019 9:58 pm

Hi Everyone.

Has anyone got this code for (ILI9340/ILI9341 TFT Display) working on the STM32F401RE?

Thanks!

vitalis
Posts: 8
Joined: Fri Nov 29, 2019 6:04 am
Location: Finland

Re: ILI9340/ILI9341 TFT Display

Post by vitalis » Fri Nov 29, 2019 6:09 am

deshipu wrote:
Wed Oct 04, 2017 11:14 am
It has been released as https://github.com/adafruit/micropython ... gb-display with a MIT license.
Hi, do you know will the driver work with this 2.8″ Touch LCD SPI display? If so how to set up SPI pins in ESP32 DEVKIT V1?

UPDATE: I got it working with following test (with some complains from SPI driver):

Code: Select all

import ili9341
from machine import Pin, SPI
vspi = SPI(2, baudrate=32000000, miso=Pin(19),mosi=Pin(23), sck=Pin(18))
display = ili9341.ILI9341(vspi, cs=Pin(2), dc=Pin(27), rst=Pin(33))
display.fill(ili9341.color565(0xff, 0x11, 0x22))
display.pixel(120, 160, 0)

vitalis
Posts: 8
Joined: Fri Nov 29, 2019 6:04 am
Location: Finland

Re: ILI9340/ILI9341 TFT Display

Post by vitalis » Mon Dec 02, 2019 8:41 pm

After playing with rotation parameters of ILI9340/ILI9341 TFT controller I got the display working with esp32 devkit1.

I made a pull request to micropython-ili9341 project:

1. New API for display initialization - Width, Height and Rotation:

Code: Select all

display = ILI9341(spi, cs=Pin(2), dc=Pin(27), rst=Pin(33), w=320, h=240, r=0)
2. Rotation parameter effects (0 - 3: rotation; 4 - 7: mirroring+rotation):
Attachments
rotations.png
rotations.png (122.11 KiB) Viewed 11114 times

Post Reply