Giter Club home page Giter Club logo

micropython-ili9341's Introduction

Micropython TFT Display Driver for ILI9341 Chipset

This is a Micropython display driver for SPI TFT displays using the ILI9341 chipset.

The original by @ropod7 has been adapted to be compatible with newer Micropython versions.

This version of the driver also is specifically targeted at the ESP32 and uses one of the machine's two hardware SPI buses.

One of the advantages of ILI9341 powered screens resides in the fact that the ILI9341 includes its own video RAM. Thus, you don't have to rely on your microcontroller memory for drawing and refreshing the screen, since the ILI9341 will take care of it.

The driver has been developed for the most common type of ILI9341 screens, which operate in portrait mode and have a resolution of 240 x 320 pixels.

However, resolution as well as orientation (portrait / landscape) are configurable.

The original author did invest a lot of work in the development of this driver. All credit for the fast drawing functions, font handling, etc. goes to him.

Installing the driver

To use this drivers on the pyboard:

  • Copy the python file available under the /ILI9341/ (directory) to your Python Board ** eg: lcd.py, colors.py , registers.py , etc
  • Create a images subfolder in the root of your pyboard to store bitmap images. ** also copy the bmp files if you plan to test example script

Consideration for micro SDCard

If you are planing to use some bitmap to be displayed on the TFT (yes, the driver can does it!) then we strongly recommand to use an micro SDCard as storage device.

Indeed, the pyboard embedded memory (inner flash) will immediately be surged with the first image copied on the pyboard.

directory structure

This section will describe the arrangement of the main directories.

  • pyboard_drive/ILI9341/ - the place for the pyboard files (to be copied on the Pyboard)
  • pyboard_drive/ILI9341/images/ - the place for the pyboard deriver images (OPTIONAL: to be copied on the pyboard)
  • pyboard_drive/ILI9341/examples/ - A collection of samples scripts. You do not need to copy them on the pyboard. Learn them to leverage the power of the driver.
  • pyboard_drive/ILI9341/wirings/ - A collection of wiring between the PyBoard and various model of TFT Screens (ILI9341 powered)

Resources

About the original author @ropod7

I am just hobbyist in Python and DIY electronics. :)

micropython-ili9341's People

Contributors

tkurbad avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.