GithubHelp home page GithubHelp logo

hmagarotto / t-display-s3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xinyuan-lilygo/t-display-s3

0.0 0.0 0.0 163.83 MB

License: MIT License

Shell 0.01% Ruby 0.02% C++ 3.46% Python 0.33% C 96.13% Processing 0.03% Makefile 0.01% HTML 0.01% Handlebars 0.01% CMake 0.01%

t-display-s3's Introduction

🌟T-Display-S3🌟

PlatformIO CI Arduino_CI

1️⃣Support Product

Product (PinMap) SOC Flash PSRAM Resolution Size
T-Display-S3 ESP32-S3R8 16MB 8MB(OPI) 170x320 1.9 Inch
T-Display-S3-Touch ESP32-S3R8 16MB 8MB(OPI) 170x320 1.9 Inch
T-Display-S3-MIDI

2️⃣Examples

./examples/
β”œβ”€β”€ Arduino_GFXDemo              #  Arduino_GFX example
β”œβ”€β”€ Arduino_GFX_PDQgraphicstest  #  Arduino_GFX example
β”œβ”€β”€ GetBatteryVoltage            #  Get battery voltage example
β”œβ”€β”€ I2CScan                      #  Scan for external devices using I2C
β”œβ”€β”€ ImageScroll                  #  Image scrolling example by @Rudi Ackermann
β”œβ”€β”€ MPR121TouchSensor            #  Example of using MPR121 capacitive touch
β”œβ”€β”€ PCBClock                     #  TFT_eSPI PCBClock example by @VolosR
β”œβ”€β”€ PokerS3                      #  TFT_eSPI PokerS3  example by @VolosR
β”œβ”€β”€ SerialExample                #  Example of using serial communication
β”œβ”€β”€ T-Display-S3-MIDI            #  T-Display-S3-MIDI Shield example
β”œβ”€β”€ TFT_Rainbow                  #  TFT_eSPI example
β”œβ”€β”€ factory                      #  factory example
β”œβ”€β”€ lv_demos                     #  lvgl demo                        
β”œβ”€β”€ nes                          #  NES game emulator
β”œβ”€β”€ ota                          #  Over-the-air upgrade example
β”œβ”€β”€ sd                           #  T-Display-TF Shield example
β”œβ”€β”€ tft                          #  TFT_eSPI example
β”œβ”€β”€ touch_test                   #  Capacitive touch test example
└── usb_hid_pad                  #  Capacitive Touch Screen Simulation USB HID Example

3️⃣ PlatformIO Quick Start (Recommended)

  1. Install Visual Studio Code and Python
  2. Search for the PlatformIO plugin in the VisualStudioCode extension and install it.
  3. After the installation is complete, you need to restart VisualStudioCode
  4. After restarting VisualStudioCode, select File in the upper left corner of VisualStudioCode -> Open Folder -> select the LilyGO AMOLED Series directory
  5. Wait for the installation of third-party dependent libraries to complete
  6. Click on the platformio.ini file, and in the platformio column
  7. Uncomment one of the lines default_envs = xxxx to make sure only one line works
  8. Click the (βœ”) symbol in the lower left corner to compile
  9. Connect the board to the computer USB
  10. Click (β†’) to upload firmware
  11. Click (plug symbol) to monitor serial output
  12. If it cannot be written, or the USB device keeps flashing, please check the FAQ below

4️⃣ Arduino IDE Manual installation

  1. Install Arduino IDE

  2. Install Arduino ESP32 V 2.0.5 or above and below V3.0

  3. Download T-Display-S3 , move to Arduino library folder (e.g. C:\Users\YourName\Documents\Arduino\libraries)

  4. Copy all folders in lib folder to Arduino library folder (e.g. C:\Users\YourName\Documents\Arduino\libraries)

  5. Enter the downloaded T-Display-S3/examples directory

  6. Select any example and double-click the any_example.ino to open it

  7. Open ArduinoIDE ,Tools ,Make your selection according to the table below

    Arduino IDE Setting Value
    Board ESP32S3 Dev Module
    Port Your port
    USB CDC On Boot Enable
    CPU Frequency 240MHZ(WiFi)
    Core Debug Level None
    USB DFU On Boot Disable
    Erase All Flash Before Sketch Upload Disable
    Events Run On Core1
    Flash Mode QIO 80MHZ
    Flash Size 16MB(128Mb)
    Arduino Runs On Core1
    USB Firmware MSC On Boot Disable
    Partition Scheme 16M Flash(3M APP/9.9MB FATFS)
    PSRAM OPI PSRAM
    Upload Mode UART0/Hardware CDC
    Upload Speed 921600
    USB Mode CDC and JTAG
    • The options in bold are required, others are selected according to actual conditions.
  8. Click upload , Wait for compilation and writing to complete

  9. If it cannot be written, or the USB device keeps flashing, please check the FAQ below

5️⃣ ESP-IDF

6️⃣ Micropython

7️⃣ ESP32 basic examples

8️⃣ Resource

Product(PinMap) schematic Dimensions PCB 3D PinMap
T-Display-S3 schematic DWG STP PinMap
T-Display-S3 Touch schematic DWG STP PinMap
T-Display-S3-MIDI schematic DWG STP

9️⃣ FAQ

  1. The screen does not light up when using battery?
    • When T-Display-S3 is powered by battery, GPIO15 must be set to HIGH to turn on the backlight.
    • Please add the following two lines at the beginning of the setup
    void setup(){
       //Turn on display power
       pinMode(15, OUTPUT);
       digitalWrite(15, HIGH);
    }
    
  2. The program can be written normally, but there is still no display after writing
  • If you are using TFT_eSPI, then you can try running Arduino_GFXDemo first. If nothing is displayed after writing, you can determine that there is a problem with the hardware.
  • If Arduino_GFXDemo is written normally, but TFT_eSPI is not displayed, then it can be judged that User_Setup_Select has been overwritten, then please read the third article of FAQ to reconfigure TFT_eSPI
  1. How to update TFT_eSPI, or confirm whether the TFT_eSPI pin configuration is correct?

    • Search for TFT_eSPI in the ArduinoIDE library manager and click Update.
    • Enter the default library manager installation location and open the TFT_eSPI folder. The default installation location is:(e.g. C:\Users\YourName\Documents\Arduino\libraries)
    • Open User_Setup_Select.h, comment out #include <User_Setup.h> which is enabled by default, or delete it
    • Search Setup206_LilyGo_T_Display_S3, find it, cancel the previous comment, then save it, and finally close it, so that TFT_eSPI uses the pin definition of T-Display-S3 by default
    #include <User_Setups/Setup206_LilyGo_T_Display_S3.h>     // For the LilyGo T-Display S3 based ESP32S3 with ST7789 170 x 320 TFT
  2. Can't upload any sketch,Please enter the upload mode manually.

    • Connect the board via the USB cable
    • Press and hold the BOOT button , While still pressing the BOOT button
    • Press RST button
    • Release the RST button
    • Release the BOOT button (If there is no BOOT button, disconnect IO0 from GND.)
    • Upload sketch
    • Press the RST button to exit download mode
  3. If you use external power supply instead of USB-C, please turn off the CDC option. This is because the board will wait for USB access when it starts.

    • For Arduino IDE users, it can be turned off in the options , Please note that turning off USB CDC will turn off Serial redirection to USBC. At this time, you will not see any Serial message output when opening the port from USB-C, but output from GPIO43 and GPIO44.
    Tools -> USB CDC On Boot -> Disable
    • For platformio users, you can add the following compilation flags in the ini file
    build_flags =
        ; Enable -DARDUINO_USB_CDC_ON_BOOT will start printing and wait for terminal access during startup
        ; -DARDUINO_USB_CDC_ON_BOOT=1
    
        ; Enable -UARDUINO_USB_CDC_ON_BOOT will turn off printing and will not block when using the battery
        -UARDUINO_USB_CDC_ON_BOOT
  4. If all the above are invalid, please flash the factory firmware for quick verification, please check here

  5. Can I use an external 5V pin for power? Please see here issues/205

  6. The default charging current is set at 500mA per hour. If you need to adjust the charging current, please see this issue

t-display-s3's People

Contributors

lewisxhe avatar mmmicky avatar lilygo avatar llgok avatar owiecc avatar hpsaturn avatar andrewhummus avatar jaspercohen avatar lwillek avatar vanvuongngo avatar lbuque avatar tyeth 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.