Skip to content

Commit

Permalink
Fix serial + web setup for S3
Browse files Browse the repository at this point in the history
  • Loading branch information
quadule committed Jan 28, 2024
1 parent f28aa68 commit 1e4113b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ lib_deps =
board = lilygo-t-display-s3
build_flags =
${common.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=1
-DADC_EN=15
-DADC_PIN=4
-DBOARD_HAS_PSRAM=1
Expand Down
2 changes: 1 addition & 1 deletion setup/firmware/tdisplay-s3/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"chipFamily": "ESP32-S3",
"parts": [
{ "path": "bootloader.bin", "offset": 4096 },
{ "path": "bootloader.bin", "offset": 0 },
{ "path": "partitions.bin", "offset": 32768 },
{ "path": "ota_data_initial.bin", "offset": 57344 },
{ "path": "firmware.bin", "offset": 65536 }
Expand Down
2 changes: 1 addition & 1 deletion setup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</style>
<script
type="module"
src="https://unpkg.com/esp-web-tools@9.0.3/dist/web/install-button.js?module"
src="https://unpkg.com/esp-web-tools@9/dist/web/install-button.js?module"
></script>
</head>
<body>
Expand Down
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ void setup() {
spotifyLinkedPlaylists.reserve(10);
spotifyPlaylists.reserve(100);

Serial.begin(115200);
#ifdef CONFIG_IDF_TARGET_ESP32S3
Serial.begin();
#else
Serial.begin(115200);
#endif

knobby.setup();
rtc_gpio_hold_dis((gpio_num_t)ROTARY_ENCODER_BUTTON_PIN);
Expand Down
1 change: 1 addition & 0 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <ESPAsync_WiFiManager.h>
#include <ESPAsyncDNSServer.h>
#include <ESPAsyncWebServer.h>
#include <HardwareSerial.h>
#include <HTTPClient.h>
#include <list>
#include <OneButton.h>
Expand Down

0 comments on commit 1e4113b

Please sign in to comment.