Giter Club home page Giter Club logo

arduino_esp32-2432s028r's Introduction

ARDUINO IDE 2.0.3 mit ESP32-2432S028R

ESP32 with 2.8inch 240*320 LCD TFT Module and Touch

Unbenannt (ESP32_2432S028R_Display5.ino)

General Information

https://www.aliexpress.com/item/1005004502250619.html
https://macsbug.wordpress.com/2022/08/17/esp32-2432s028/

How to install ARDUINO IDE 2.0.3 with ESP32 support on Linux

erase all old traces, then download, install and start it

rm -rf ~/Schreibtisch/arduino-ide* ~/.arduinoIDE ~/.arduino15 ~/.config/arduino* ~/.config/Arduino* ~/Arduino*
wget https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.3_Linux_64bit.AppImage
mv arduino-ide_2.0.3_Linux_64bit.AppImage ~/Schreibtisch
chmod u+x ~/Schreibtisch/arduino-ide_2.0.3_Linux_64bit.AppImage
~/Schreibtisch/arduino-ide_2.0.3_Linux_64bit.AppImage & disown

Install Arduino IDE 2.3.0 on Windows

Download from here:

https://downloads.arduino.cc/arduino-ide/arduino-ide_2.3.0_Windows_64bit.exe

Start the installer, klick yes to everything.

Settings in Arduino IDE:
Menü -> File -> Preferences -> Language -> English
Menü -> File -> Preferences -> Show verbose output during compile und upload -> check
Menü -> File -> Preferences -> Compiler warnings -> Default
Menü -> File -> Preferences -> Additional URLs -> https://dl.espressif.com/dl/package_esp32_index.json
Menü -> File -> Preferences -> OK
Libary Manager -> TFT_eSPI -> search and install: TFT_eSPI by Bodmer ver 2.5.34
Libary Manager -> TFT_eSPI -> search and install: NTPClient by F.Weinberg ver 3.2.1
Libary Manager -> TFT_eSPI -> search and install: HTTPClient by A.McEwen ver 2.2.0
Libary Manager -> TFT_eSPI -> search and install: ArduinoJson.h by B.Blanchon ver 7.0.3
Bords Manager -> ESP32 search and install esp32 by Espressif Sytems instalieren
Select Board and Port -> ESP32 Dev Module -CPU Frequency : “240MHz (WiFi/BT)”
-Core Degug Level : “Verbose”
-Flash Frequency : “80MHz”
-Flash Mode : “QIO” or “DIO”
-Flash Size : “4MB (32Mb)”
-Partition Scheme : “Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)”
-PSRAM : “Disabled”
-Upload Speed: “921600”

Prepear LovyanGFX Libary

Copy lgfx_ESP32_2432S028.h to your local dirctrory and include #include "lgfx_ESP32_2432S028.h" to your source code. Right now, there is only one example using this libary

Prepear TFT_eSPI Libary

Copy this in ~/Arduino/libraries/TFT_eSPI/User_Setup.h

#define ILI9341_2_DRIVER    
#define TFT_WIDTH  240
#define TFT_HEIGHT 320
#define TFT_BL   21           
#define TFT_BACKLIGHT_ON HIGH  
#define TFT_MOSI 13 
#define TFT_SCLK 14
#define TFT_CS   15  
#define TFT_DC   2  
#define TFT_RST  12  
#define TFT_BL   21 
#define TOUCH_CS 33  
#define LOAD_GLCD   
#define LOAD_FONT2  
#define LOAD_FONT4  
#define LOAD_FONT6  
#define LOAD_FONT7  
#define LOAD_FONT8  
#define LOAD_GFXFF  
#define SMOOTH_FONT
#define SPI_FREQUENCY  55000000 
#define SPI_READ_FREQUENCY  20000000
//Touch Screen: ?????????ß
#define XPT2046_IRQ 36
#define XPT2046_MOSI 32
#define XPT2046_MISO 39
#define XPT2046_CLK 25
#define XPT2046_CS 33
#define SPI_TOUCH_FREQUENCY  2500000

Load first Example under Linux

wget https://macsbug.files.wordpress.com/2022/08/life_game_esp32_2432s028.zip_-1.pdf -O tmp.zip 
unzip -o tmp.zip Life_Game_ESP32_2432S028/lgfx_ESP32_2432S028.h Life_Game_ESP32_2432S028/Life_Game_ESP32_2432S028.ino -d ~/Arduino/ 
rm tmp.zip
find ~/Arduino/* -type f -iname 'lgfx_ESP32_2432S028.h' -exec sed -i 's/SPI2_HOST/HSPI_HOST/g' '{}' \;
find ~/Arduino/Life_Game*

Menü -> File -> Open -> Life_Game_ESP32_2432S028 -> Life_Game_ESP32_2432S028.ino
Compile und Upload -> BINGO

To do

arduino_esp32-2432s028r's People

Contributors

ottomeister avatar

Stargazers

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

Watchers

 avatar  avatar  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.