Skip to content

Commit 0fd3385

Browse files
committed
Added support for ESP32-S3-Box
1 parent 24f5c13 commit 0fd3385

File tree

13 files changed

+32
-4
lines changed

13 files changed

+32
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- esp32:esp32:m5stack-fire
3434
- esp32:esp32:m5stack-core2
3535
- esp32:esp32:odroid_esp32:PartitionScheme=min_spiffs
36+
- esp32:esp32:esp32s3box
3637

3738
platform-url:
3839
- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
@@ -53,6 +54,9 @@ jobs:
5354
- arduino-boards-fqbn: esp32:esp32:odroid_esp32:PartitionScheme=min_spiffs
5455
fancy-name: OdroidGo
5556
bin-name: OdroidGo-BLECollector.bin
57+
- arduino-boards-fqbn: esp32:esp32:esp32s3box
58+
fancy-name: S3Box
59+
bin-name: S3Box-BLECollector.bin
5660

5761
fail-fast: false
5862

ESP32-BLECollector/BLE.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
3030
*/
3131

32+
#pragma GCC diagnostic ignored "-Wunused-variable"
33+
3234
#define TICKS_TO_DELAY 1000
3335

3436
const char* processTemplateLong = "%s%d%s%d";

ESP32-BLECollector/BLECache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
*
5858
\*/
5959

60-
60+
#pragma GCC diagnostic ignored "-Wunused-variable"
6161

6262
struct BLEGATTService
6363
{

ESP32-BLECollector/BLEFileSharing.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*/
3131

3232
#pragma GCC diagnostic ignored "-Wunused-function"
33+
#pragma GCC diagnostic ignored "-Wunused-variable"
3334

3435

3536
#define TICKS_TO_DELAY 1000

ESP32-BLECollector/DB.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
3030
*/
3131

32-
32+
#pragma GCC diagnostic ignored "-Wunused-variable"
3333

3434

3535
const char* data = 0; // for some reason sqlite3 db callback needs this

ESP32-BLECollector/Display.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
|| defined ARDUINO_TWATCH_2020_V1 \
1414
|| defined ARDUINO_TWATCH_2020_V2 \
1515
|| defined ARDUINO_LOLIN_D32_PRO \
16+
|| defined ARDUINO_ESP32_S3_BOX \
1617
// yay! platform is supported
1718
#else
1819
#error "NO SUPPORTED BOARD DETECTED !!"
@@ -51,7 +52,7 @@ static const int AMIGABALL_YPOS = 50;
5152

5253

5354
// display profiles switcher
54-
#if defined( ARDUINO_M5Stack_Core_ESP32 ) || defined( ARDUINO_M5STACK_FIRE ) || defined( ARDUINO_ODROID_ESP32 ) || defined( ARDUINO_M5STACK_Core2 ) || defined( ARDUINO_LOLIN_D32_PRO )
55+
#if defined( ARDUINO_M5Stack_Core_ESP32 ) || defined( ARDUINO_M5STACK_FIRE ) || defined( ARDUINO_ODROID_ESP32 ) || defined( ARDUINO_M5STACK_Core2 ) || defined( ARDUINO_LOLIN_D32_PRO ) || defined ARDUINO_ESP32_S3_BOX
5556

5657
#if defined ARDUINO_M5Stack_Core_ESP32
5758
//#undef WITH_WIFI // M5Stack has a small partition, disable WiFi
@@ -105,6 +106,11 @@ static const int AMIGABALL_YPOS = 50;
105106
//#undef HEAPGRAPH_CORE
106107
//#define HEAPGRAPH_CORE 0
107108

109+
110+
#elif defined ARDUINO_ESP32_S3_BOX
111+
112+
#undef WITH_WIFI // NTP is useless without a RTC module
113+
108114
#else
109115
// M5Stack Classic, Fire
110116
#undef HAS_EXTERNAL_RTC
@@ -265,6 +271,8 @@ static const int AMIGABALL_YPOS = 50;
265271
#define tft M5.Lcd // syntax sugar
266272
//#include "HID_XPad.h" // external HID
267273

274+
#pragma GCC diagnostic ignored "-Wunused-variable"
275+
268276

269277
static TFT_eSprite gradientSprite( &tft ); // gradient background
270278
static TFT_eSprite heapGraphSprite( &tft ); // activity graph

ESP32-BLECollector/NTP.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma GCC diagnostic ignored "-Wunused-variable"
2+
13
/*\
24
* NTP Helpers
35
\*/

ESP32-BLECollector/RTC.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
3636
*/
3737

38+
#pragma GCC diagnostic ignored "-Wunused-variable"
39+
3840
#if defined( ARDUINO_M5STACK_Core2 ) // M5Core2 uses BM8563
3941

4042
//#define BM8563_ADDR 0x51 // M5Core2 RTC I2C address

ESP32-BLECollector/SDUtils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* SD Helpers
33
\*/
44

5+
6+
#pragma GCC diagnostic ignored "-Wunused-variable"
7+
58
static bool sd_mounted = false;
69

710

ESP32-BLECollector/ScrollPanel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
3030
*/
3131

32+
#pragma GCC diagnostic ignored "-Wunused-variable"
33+
3234
#define SPACE " "
3335
static bool isScrolling = false;
3436
static bool isInScroll()

0 commit comments

Comments
 (0)