GithubHelp home page GithubHelp logo

adafruit_st7796s_kbv's Introduction

Adafruit-style Arduino library for ST7796S SPI displays.

This inherits from Adafruit_GFX and Adafruit_SPITFT libraries. It should behave exactly like Adafruit's own Adafruit_ILI9341 but for 320x480 ST7796S SPI displays.

Adafruit_ST7796S_kbv inherits all the methods from
the Adafruit_GFX class: https://learn.adafruit.com/adafruit-gfx-graphics-library/overview
and Print class: https://www.arduino.cc/en/Serial/Print

Note that the popular Chinese Red SPI displays require 3.3V logic signals.

5V Uno, Mega, Nano, Leo, ... MUST use level-shifters for CS, RESET, DC, SDI, SCK, LED.
3V Zero, Due, STM32, ... can connect directly.

Most Red pcbs contain an AMS1117-3.3 regulator.
None have a pullup resistor on LCD_RESET pin.
Some have a transistor switch on LED pin. You can switch backlight LED on or off with a GPIO pin (or PWM).
The new Red ST7796S boards have an AMS1117-3.3 regulator and an LED transistor.

Connect VCC = 5V if there is a regulator. Use VCC = 3.3V if there is no regulator.
Connect LED to a GPIO if there is a transistor (or 5V with a 1k0 series resistor).
Otherwise connect LED to 5V with a 39R series resistor.

You MUST use the RST argument in both Software and Hardware constructors.
Note that many Adafruit examples omit the RST argument (because Adafruit pcbs have a RST pullup resistor)

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries. MIT license, all text above must be included in any redistribution

To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_ST7796S_kbv. Check that the Adafruit_ST7796S_kbv folder contains Adafruit_ST7796S_kbv.cpp and Adafruit_ST7796S_kbv.

Place the Adafruit_ST7796S_kbv library folder your arduinosketchfolder/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE

Also requires the Adafruit_GFX library for Arduino.

adafruit_st7796s_kbv's People

Contributors

prenticedavid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adafruit_st7796s_kbv's Issues

STM32F1 series

Hi there

Would it be possible for you to make it work with STM32F1 series? (BluePill)
As this is a 3 volt chip, so it could be used without any 5 to 3 volt converter.
Thanks in advance.

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.