Giter VIP home page Giter VIP logo

micropython-examples-for-esp32-cheap-yellow-display's Introduction

Micropython Examples for ESP32 "Cheap Yellow Display"

This is display and touch screen boilerplate to use with Micropython on the "CYD".

Full instructions

Full instructions to get this working graciously provided by kf107 from thinklayer.com in a Medium Article here.

A mirror of the instructions in text format in case the article goes missing are located in the repo as medium_instructions.md.

Quick Instructions at a glance

Flash the CYD with Micropython ESP32 Generic. I suggest using the most current stable release, not a development release. https://micropython.org/download/ESP32_GENERIC/

Clone this repo and upload the files to your board using Thonny, rshell or whatever IDE extension that can talk to the board.

Reboot and try it out. Your touch screen may not report the same values, so will need altering.

Libraries from @rdagger:

https://github.com/rdagger/micropython-ili9341

micropython-examples-for-esp32-cheap-yellow-display's People

Contributors

jettisonthenet avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

geospatialdaryl

micropython-examples-for-esp32-cheap-yellow-display's Issues

XglcdFont's glitched rendering

Hi, using your library, and a spun off version specifically for the CYD variant i have (2.4 capacitive touch with USB C). all the display draw functions work great...except XglcdFont usage. I do not know if the XglcdFont class returns faulty objects or if the draw_text and draw_letter functions are the issue.

It does not matter if I use glcd fonts found online or ones created with the tool, the rendering is always messed up (like a jumbled random image)

There seems to be some interpretation fault, and being new to microcontroller coding (my experience is with creating programs and scripts automating SolidWorks, a CAD program) I have zero idea how to proceed because I cannot be certain if the error is with me or with the library method.

ili4193.py - color565(r,g,b) plays wrong colors

I found out, that the following code works (for my cyd2usb):
(b and r have to be swapped in the parameter list)
There my be a different place where to repair this.

def color565(b, g, r):
    """Return RGB565 color value.

    Args:
        r (int): Red value.
        g (int): Green value.
        b (int): Blue value.
    """ 
    return (r & 0xf8) << 8 | (g & 0xfc) << 3 | b >> 3

Touch panel ccordinates wrong

I have a CYD2USB. The touch coordinates seem to be swapped, x vs. y. I tried in different places to exchange x and y to no avail. But y is always flaggedas being out of range (> 239).

Where would I have to swap the coordinates?

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.