Giter VIP home page Giter VIP logo

waveshare_ili9486's Introduction

Waveshare ILI9486 Arduino

Graphics and touchscreen drivers for Waveshare 3.5" and 4.0" Shields

This is an Arduino library for the Waveshare ILI9486 SPI touch shield displays and is a re-implementation of the 'Adafruit_GFX' graphics API. This version is substantially faster than the original sample software and provides an integrated touchscreen interface.

The touch screen will also calibrate itself automatically, and provides access to the calibration data so that is can be stored (for example, in EEPROM) and then set, so that the touch screen will maintain its calibration across reboots.

Examples

Under examples there is:

  • GraphicsTest
  • TouchTest

GraphicsTest runs through the Adafruit_GFX test code, and gives a timing speed for it. This is about 25 seconds for the whole run. The original Waveshare library used a cut down version of the Adafruit tests - that has been replicated as well so that times can be compared. On a Mega 2560, the original library took about 70 seconds to complete. This library is down to just under 16 seconds.

TouchTest is a very simple 'painting' program. It shows how to read and normalize the touch points, and how the screen calibration is handled. When first started, the drawing will not occur under the stylus. Once the screen is calibrated, the drawng and stylus should be very closely aligned.

To calibrate the screen, simply run the stylus off all four edges of the screen a few times. This calibration can be retrieved using getTsConfigData(), saved, and restored later using setTsConfigData().

This library can be installed manually, or it is available from the Arduino IDE Library Manager. Search for "Waveshare ILI9486" in the Library Manager.

References

Wiki support pages:

Authors

  • Waveshare team - Original driver code - Waveshare
  • Calvin Hass - Arduino library adaptation - ImpulseAdventure
  • M Hotchin - Updated Arduino library

License

  • This project is licensed under the MIT License - see the LICENSE file for details
  • The Waveshare team has requested that their code retain a note indicating that the original code is from Waveshare.
  • This library leverages the Adafruit-GFX API, with a BSD license.

waveshare_ili9486's People

Contributors

impulseadventure avatar mhotchin avatar per1234 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.