Skip to content
C

2432 work

YU CHIH CHANG0a0254c6a70d
diff --git a/platformio.ini b/platformio.ini
index 86d4a74..c49d8d4 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -74,26 +74,30 @@ lib_deps =
#
#############################################
[env:esp32]
-platform = espressif32@^6.2
+platform = [email protected]
# this should be set to your flavor of esp32, for instance wemos_d1_mini32, esp32doit-devkit-v1, seeed_xiao_esp32c3
# BOARD LIST: https://docs.platformio.org/en/latest/boards/index.html#espressif-32
board = esp32doit-devkit-v1
framework = arduino
lib_deps =
- moononournation/GFX Library for Arduino@^1.4.0
+ moononournation/GFX Library for [email protected]
locoduino/RingBuffer@^1.0.4
https://github.com/paulo-raca/ArduinoBufferedStreams.git#5e3a1a3d140955384a07878c64808e77fa2a7521
https://github.com/khoih-prog/ESPAsync_WiFiManager
#lemmingdev/ESP32-BLE-Gamepad@^0.5.2 #liberia per bluettoth
#h2zero/NimBLE-Arduino@^1.4.0 #liberia nible usata per bluettoth
-
+upload_port = COM3
;# this sets your board to 240MHz, not all boards support this, but if yours does, uncomment.
;; board_build.f_cpu = 240000000L
build_flags =
-w -DESP32=true
-monitor_speed = 115200
+
;; build_type = debug # set this to debug only for debugging, as it's slower.
;monitor_filters = esp32_exception_decoder
;upload_speed = 921600
;upload_port = COM10
+
+
+monitor_port = COM3
+monitor_speed = 115200
\ No newline at end of file
diff --git a/src/SHCustomProtocol.h b/src/SHCustomProtocol.h
index fd2ff29..ac05c53 100644
--- a/src/SHCustomProtocol.h
+++ b/src/SHCustomProtocol.h
@@ -101,7 +101,7 @@ public:
// Serial.println("Test seriale avviato!"); //x debug
tft.init();
- tft.setRotation(1);
+ tft.setRotation(3);
tft.fillScreen(TFT_BLACK);
bleGamepadConfig.setAutoReport(true); // in false non invia i comandi a windows
diff --git a/src/lgfx_user/LGFX_ESP32_esp32-2432s028.hpp b/src/lgfx_user/LGFX_ESP32_esp32-2432s028.hpp
index 0b46b8e..f19d87a 100644
--- a/src/lgfx_user/LGFX_ESP32_esp32-2432s028.hpp
+++ b/src/lgfx_user/LGFX_ESP32_esp32-2432s028.hpp
@@ -50,7 +50,7 @@ public:LGFX(void){
{ // 表示パネル制御の設定を行います。
auto cfg = _panel_instance.config();// Ottieni la struttura per le impostazioni del pannello di visualizzazione.
cfg.pin_cs = 15; // Numero pin a cui è collegato CS (-1 = disabilitato)
- cfg.pin_rst = -1; // Numero pin a cui è collegato RST (-1 = disabilitato)
+ cfg.pin_rst = 12; // Numero pin a cui è collegato RST (-1 = disabilitato)
cfg.pin_busy = -1; // Numero pin a cui è collegato BUSY (-1 = disabilitato)
cfg.memory_width = 240; // Larghezza massima supportata dall'IC del driver
cfg.memory_height = 320; // Altezza massima supportata dal driver IC
diff --git a/src/main.cpp b/src/main.cpp
index d060d92..a5b97af 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,7 +4,7 @@
// No longer have to define whether it's an ESP32 or ESP8266, just do an initial compilation and
// VSCode will pick up the right environment from platformio.ini
-#define INCLUDE_WIFI true
+#define INCLUDE_WIFI false
// Less secure if you plan to commit or share your files, but saves a bunch of memory.
// If you hardcode credentials the device will only work in your network
#define USE_HARDCODED_CREDENTIALS false