Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added bin/bin ESP32-S3-LCD-147/0x0000_bootloader.bin
Binary file not shown.
Binary file added bin/bin ESP32-S3-LCD-147/0x10000_firmware.bin
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions lib/TFT_eSPI/User_Setup_Select.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@
#ifdef NERDMINER_S3_GEEK
#include <User_Setups/Setup303_WaveShare ESP32S3_GEEK.h> // Setup file for Waveshare Setup303_WaveShare ESP32S3_GEEK with ST7789 135*240 TFT
#endif
#ifdef NERDMINER_S3_LCD_147
#include <User_Setups/Setup305_WaveShare_ESP32S3_LCD_147.h> // Setup file for Waveshare ESP32-S3-LCD-1.47 with ST7789 172*320 TFT
#endif

// #include <User_Setups/Setup212_LilyGo_T_PicoPro.h> // For the LilyGo T-PICO-Pro with ST7796 222 x 480 TFT
// #include <User_Setups/Setup213_LilyGo_T_Beam_Shield.h> // For the LilyGo T-BEAM V1.x with ST7796 222 x 480 TFT
Expand Down
33 changes: 33 additions & 0 deletions lib/TFT_eSPI/User_Setups/Setup305_WaveShare_ESP32S3_LCD_147.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Waveshare ESP32-S3-LCD-1.47 with ST7789 172x320 display

#define USER_SETUP_ID 305

#define ST7789_DRIVER

#define TFT_WIDTH 172
#define TFT_HEIGHT 320

#define CGRAM_OFFSET

#define TFT_RGB_ORDER TFT_BGR

#define TFT_INVERSION_ON

#define TFT_MOSI 45
#define TFT_SCLK 40
#define TFT_CS 42
#define TFT_DC 41
#define TFT_RST 39
#define TFT_BL 48

#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 40000000
33 changes: 30 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ extra_scripts =
pre:auto_firmware_version.py
post:post_build_merge.py
board_build.partitions = huge_app.csv
build_flags =
build_flags =
-DNERDMINER_S3_GEEK
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT
Expand All @@ -832,13 +832,40 @@ build_flags =
-DSDSPI_MISO=37
-DSDSPI_CS=34
-DSD_ID=HSPI
lib_deps =
lib_deps =
https://github.com/takkaO/OpenFontRender#v1.2
bblanchon/ArduinoJson@^6.21.5
https://github.com/tzapu/WiFiManager.git#v2.0.17
mathertel/oneButton@^2.6.1
arduino-libraries/NTPClient@^3.2.1
lib_ignore =
lib_ignore =
HANSOLOminerv2

;--------------------------------------------------------------------

[env:NerdminerV2-S3-LCD-147]
platform = espressif32@6.6.0
board = esp32-s3-devkitc-1
framework = arduino
extra_scripts =
pre:auto_firmware_version.py
post:post_build_merge.py
board_build.partitions = huge_app.csv
board_build.arduino.memory_type = qio_opi
build_flags =
-DNERDMINER_S3_LCD_147
-DBOARD_HAS_PSRAM
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DTFT_BACKLIGHT_ON=HIGH
lib_deps =
https://github.com/takkaO/OpenFontRender#v1.2
bblanchon/ArduinoJson@^6.21.5
https://github.com/tzapu/WiFiManager.git#v2.0.17
mathertel/oneButton@^2.6.1
arduino-libraries/NTPClient@^3.2.1
fastled/FastLED@3.7.8
lib_ignore =
HANSOLOminerv2

;--------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/drivers/devices/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#include "wt32.h"
#elif defined(NERDMINER_S3_GEEK)
#include "waveshareS3Geek.h"
#elif defined(NERDMINER_S3_LCD_147)
#include "waveshareS3LCD147.h"
#elif defined(NERDMINER_T_HMI)
#include "lilygoT_HMI.h"
#elif defined(SPOTPEAR)
Expand Down
9 changes: 9 additions & 0 deletions src/drivers/devices/waveshareS3LCD147.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef _WAVESHARE_S3_LCD_147_H
#define _WAVESHARE_S3_LCD_147_H

#define PIN_BUTTON_1 0
#define RGB_LED_PIN 38
#define ESP32RGB
#define T_DISPLAY

#endif