From 35e94f6ea6c8c5116194f4256ef9c2ef23e77f74 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sun, 10 May 2026 21:07:20 +0300 Subject: [PATCH] Support ESP32-C3 User Serial1 for rc instead of Serial2, as ESP32-C3 has only 2 Serials. Add CI build for ESP32-C3. --- .github/workflows/build.yml | 2 ++ README.md | 2 +- flix/rc.ino | 2 +- gazebo/Arduino.h | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3bb9234..cd50ee2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,8 @@ jobs: with: name: firmware-binary path: flix/build + - name: Build firmware for ESP32-C3 + run: make BOARD=esp32:esp32:esp32c3 - name: Build firmware for ESP32-S3 run: make BOARD=esp32:esp32:esp32s3 - name: Check c_cpp_properties.json diff --git a/README.md b/README.md index 6501da5..649c559 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Additional articles: |Type|Part|Image|Quantity| |-|-|:-:|:-:| -|Microcontroller board|ESP32 Mini||1| +|Microcontroller board|ESP32 Mini.
ESP32-S3/ESP32-C3 boards are also supported.||1| |IMU (and barometer¹) board|GY‑91, MPU-9265 (or other MPU‑9250/MPU‑6500 board)
ICM20948V2 (ICM‑20948)
GY-521 (MPU-6050)|

|1| |Boost converter (optional, for more stable power supply)|5V output||1| |Motor|8520 3.7V brushed motor.
Motor with exact 3.7V voltage is needed, not ranged working voltage (3.7V — 6V).
Make sure the motor shaft diameter and propeller hole diameter match!||4| diff --git a/flix/rc.ino b/flix/rc.ino index 8dfdadd..7433c72 100644 --- a/flix/rc.ino +++ b/flix/rc.ino @@ -6,7 +6,7 @@ #include #include "util.h" -SBUS rc(Serial2); +SBUS rc(Serial1); int rcRxPin = -1; // -1 means disabled uint16_t channels[16]; // raw rc channels diff --git a/gazebo/Arduino.h b/gazebo/Arduino.h index d0512a1..52c849b 100644 --- a/gazebo/Arduino.h +++ b/gazebo/Arduino.h @@ -151,7 +151,7 @@ public: void setRxInvert(bool invert) {}; }; -HardwareSerial Serial, Serial2; +HardwareSerial Serial, Serial1, Serial2; class EspClass { public: