Giter Site home page Giter Site logo

wt32-sc01-demo's Introduction

A demo Arduino sketch for the WT32-SC01.

To install:

  1. Clone this repo.
  2. Set up your Arduino IDE with ESP32 support.
  3. In your Arduino libraries directory, clone a fork of Adafruit_FT6206_Library that allows overriding the I2C GPIO pins in the Arduino Wire library.
  4. Add TFT_eSPI via Arduino's library manager.
  5. Configure TFT_eSPI by copying WT32-SC01-User_Setup.h from this directory to wherever you keep your TFT_eSPI user setup files (read that project's documentation to see how to do that), and then point TFT_eSPI to that header file.

Now build and flash to your device. If everything goes well, you'll see a rotating cube on the screen, and when you tap the screen, the background will alternate between black and green.

Thanks to seaniefs for getting me started. This project is basically a redo of that project, but updated for a newer version of the Adafruit touchscreen library.

wt32-sc01-demo's People

Contributors

sowbug avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wt32-sc01-demo's Issues

In WT32-SC01-User_Setup.h a line needs to be uncommented for the WT32-SC01 to work properly

In WT32-SC01-User_Setup.h a line needs to be uncommented for the WT32-SC01

Uncomment the following line:
// #define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW)

Make the change above.
Then copy the file into your TFT_eSPI\User_Setups folder.
Then add the following line to your User_Setup_Select.h file:
#include <User_Setups/WT32-SC01-User_Setup.h> // Setup file for WC32-SC01
Then comment out the following line in User_Setup_Select.h:
#include <User_Setup.h> // Default setup is root library folder
Now the examples from the TFT_eSPI library (not including the touch examples) work fine.

Once this is done I am still getting "Couldn't start touchscreen controller" on the demo. :-(

Touch not working

Really happy to find your repo, but i still can't make it work.

This is what i did
First removed original Adafruit_FT6206.h library and installed the one you pointed out.
When first compiled, I got an error that TFT_BL was not defined.

No wonder since the serial port showed the following output:

09:56:56.804 -> Couldn't start touchscreen controller

This comes from this subroutine:

if (!ts.begin(18, 19, 40)) {
Serial.println("Couldn't start touchscreen controller");
while (true);
}

What is the TFT_BL pin you defined ?

Many thanks

Erik

Cropped Display as 320x240

Hi, thank you for awesome help for WT32, I did exact procedures by your tutorial and I able to run the example code. Problem is that, display size is became 320x240 which is originally 480x320. Remaining parts are looks like white noise as blank. Is there something I missed.
Thanks

copying a library to change it?

How is copying a library to change it makes it a library? Isn't a library suppose to be universal for any projects? I do not understand the logic of this coding. Is there a way to use the library without changing it?

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.