Page 1 of 4

ILI9340/ILI9341 TFT Display

Posted: Sun Jun 05, 2016 2:09 pm
by deshipu
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/

Re: ILI9340/ILI9341 TFT Display

Posted: Sun Jun 05, 2016 3:30 pm
by Roberthh
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

Re: ILI9340/ILI9341 TFT Display

Posted: Sun Jun 05, 2016 8:52 pm
by deshipu
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.

Re: ILI9340/ILI9341 TFT Display

Posted: Wed Oct 04, 2017 9:45 am
by tuupola
Deshipu what is the license for your ili9341 driver?

Re: ILI9340/ILI9341 TFT Display

Posted: Wed Oct 04, 2017 11:14 am
by deshipu
It has been released as https://github.com/adafruit/micropython ... gb-display with a MIT license.

Re: ILI9340/ILI9341 TFT Display

Posted: Wed Oct 04, 2017 11:56 am
by tuupola
Awesome. Just what I was looking for. Thanks!

Re: ILI9340/ILI9341 TFT Display

Posted: Mon Oct 09, 2017 2:25 pm
by tuupola
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.

Re: ILI9340/ILI9341 TFT Display

Posted: Mon Dec 04, 2017 2:34 am
by OutoftheBOTS_
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.

Re: ILI9340/ILI9341 TFT Display

Posted: Mon Dec 04, 2017 7:35 am
by mattyt
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.

Re: ILI9340/ILI9341 TFT Display

Posted: Mon Dec 04, 2017 12:02 pm
by OutoftheBOTS_
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