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
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

ILI9340/ILI9341 TFT Display

Post by deshipu » Sun Jun 05, 2016 2:09 pm

This is a very simple driver for the popular SPI-based TFT displays. Right now it only supports drawing individual pixels and filled rectangles, and it's pretty slow. Code at https://bitbucket.org/thesheep/micropython-ili9341/src/

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: ILI9340/ILI9341 TFT Display

Post by Roberthh » Sun Jun 05, 2016 3:30 pm

That's good. Maybe you have a look at the work of @ropod7, who did similar, and share forces.
https://github.com/ropod7/pyboard_drive
http://forum.micropython.org/viewtopic. ... 9341#p8772

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: ILI9340/ILI9341 TFT Display

Post by deshipu » Sun Jun 05, 2016 8:52 pm

Thanks, I will certainly steal some ideas from that, but I'm afraid that code is way too heavy for esp8266 -- I think I will keep my implementation as a more minimal alternative.

By the way, I just added text and vertical scrolling support.

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

Re: ILI9340/ILI9341 TFT Display

Post by tuupola » Wed Oct 04, 2017 9:45 am

Deshipu what is the license for your ili9341 driver?

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: ILI9340/ILI9341 TFT Display

Post by deshipu » Wed Oct 04, 2017 11:14 am

It has been released as https://github.com/adafruit/micropython ... gb-display with a MIT license.

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

Re: ILI9340/ILI9341 TFT Display

Post by tuupola » Wed Oct 04, 2017 11:56 am

Awesome. Just what I was looking for. Thanks!

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

Re: ILI9340/ILI9341 TFT Display

Post by tuupola » Mon Oct 09, 2017 2:25 pm

Is there a way to install this with upip? Cannot find it from pypi and quickly looking at upip source it does not seem to support installing from repository.

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: ILI9340/ILI9341 TFT Display

Post by OutoftheBOTS_ » Mon Dec 04, 2017 2:34 am

I have started to work on porting across my ili9341 library from the RPi to micro-python. I have just got a image loader working so far and it is very basic without error checking or being very flexible but more a proof of concept to be further developed.

see https://youtu.be/JwvLAB6IlqM

Each 320x240 images uses 150KB of flash storage space. I have a another program that I wrote on my PC that processes the image file into a 16bit BMP file so there isn't any processing done my the ESP chip but rather a dump from the Flash RAM to the ili9341 RAM via hardware SPI

I have it up and running on my ESP8266 board but the intention is for it to have a high level GUI fuctions with a foreground and back ground like my RPi libraries that I made. This isn't possible on the ESP8266 but is possible with the ESP32 especially with the 4MB spRAM.

If people r interested in it I can make a light weight ESP8266 version for MIT license.

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: ILI9340/ILI9341 TFT Display

Post by mattyt » Mon Dec 04, 2017 7:35 am

I'm interested. I recently bought one of the M5 Stack's as they're a neat little package to experiment with Micropython on the ESP32. They have a 320x240 2" ILI9341-controlled LCD which I've started using with @deshipu's ILI9341 driver (with only minor teething issues).

But it would potentially be useful to be able to easily display images too... :)

Soon I will try and write up my experience using the M5.

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: ILI9340/ILI9341 TFT Display

Post by OutoftheBOTS_ » Mon Dec 04, 2017 12:02 pm

Wow that's a cool little unit. I haden't seem them before. They look like a great concept and in a very neat presentable package too.

That unit has a ESP32 so it should be ok running the more fully featured library that I am writing and won't need a light weight version like the ESP8266. I am having many ideas of how I can start to get around the limited RAM of the ESP8266 to make stuff work.

I might finish off the image loader and make it available while I work on the rest of my ideas. This also gives an opportunity for people to test and give me feedback on the image loader.

Tonight I had a bit of a play with proof of concept for making scale able fonts to run on this platform. see https://youtu.be/XDMWeVNLtOY

Post Reply