From 7a0d482437d31d983e89cf074c9d136deb18beb2 Mon Sep 17 00:00:00 2001 From: jackgray-nycbs Date: Sun, 28 Dec 2025 23:01:13 -0500 Subject: [PATCH] Added platform.io support --- examples/tilt-demo/platformio.ini | 21 +++++++++++++++++++++ examples/tilt-demo/{ => src}/Game.ino | 0 examples/tilt-demo/{ => src}/WS_Matrix.cpp | 0 examples/tilt-demo/{ => src}/WS_Matrix.h | 0 examples/tilt-demo/{ => src}/WS_QMI8658.cpp | 0 examples/tilt-demo/{ => src}/WS_QMI8658.h | 0 6 files changed, 21 insertions(+) create mode 100644 examples/tilt-demo/platformio.ini rename examples/tilt-demo/{ => src}/Game.ino (100%) rename examples/tilt-demo/{ => src}/WS_Matrix.cpp (100%) rename examples/tilt-demo/{ => src}/WS_Matrix.h (100%) rename examples/tilt-demo/{ => src}/WS_QMI8658.cpp (100%) rename examples/tilt-demo/{ => src}/WS_QMI8658.h (100%) diff --git a/examples/tilt-demo/platformio.ini b/examples/tilt-demo/platformio.ini new file mode 100644 index 0000000..81374ee --- /dev/null +++ b/examples/tilt-demo/platformio.ini @@ -0,0 +1,21 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env:waveshare-esp32s3-matrix] +platform = espressif32 +board = adafruit_feather_esp32s3 +framework = arduino +lib_deps = + fastled/FastLED@^3.9.20 + adafruit/Adafruit NeoPixel@^1.12.0 + lewisxhe/SensorLib@^0.2.5 +lib_extra_dirs = ../../lib +monitor_speed = 115200 +upload_speed = 921600 diff --git a/examples/tilt-demo/Game.ino b/examples/tilt-demo/src/Game.ino similarity index 100% rename from examples/tilt-demo/Game.ino rename to examples/tilt-demo/src/Game.ino diff --git a/examples/tilt-demo/WS_Matrix.cpp b/examples/tilt-demo/src/WS_Matrix.cpp similarity index 100% rename from examples/tilt-demo/WS_Matrix.cpp rename to examples/tilt-demo/src/WS_Matrix.cpp diff --git a/examples/tilt-demo/WS_Matrix.h b/examples/tilt-demo/src/WS_Matrix.h similarity index 100% rename from examples/tilt-demo/WS_Matrix.h rename to examples/tilt-demo/src/WS_Matrix.h diff --git a/examples/tilt-demo/WS_QMI8658.cpp b/examples/tilt-demo/src/WS_QMI8658.cpp similarity index 100% rename from examples/tilt-demo/WS_QMI8658.cpp rename to examples/tilt-demo/src/WS_QMI8658.cpp diff --git a/examples/tilt-demo/WS_QMI8658.h b/examples/tilt-demo/src/WS_QMI8658.h similarity index 100% rename from examples/tilt-demo/WS_QMI8658.h rename to examples/tilt-demo/src/WS_QMI8658.h