diff --git a/.github/workflows/platformio.yml b/.github/workflows/platformio.yml index a5389598..a2018e9e 100644 --- a/.github/workflows/platformio.yml +++ b/.github/workflows/platformio.yml @@ -11,21 +11,21 @@ jobs: test: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache pip - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - name: Cache PlatformIO - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.platformio key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install Dependencies @@ -40,9 +40,9 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - target: ['esp32', 'esp32c3', 'esp8266', 'rp2040'] + target: ['esp32', 'esp32c3', 'esp8266'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Extract Version run: | echo "build_name=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV @@ -62,19 +62,19 @@ jobs: echo DEVEL: ${{ env.build_file_devel }} echo RELEASE: ${{ env.build_file_release }} - name: Cache pip - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - name: Cache PlatformIO - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.platformio key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install Dependencies @@ -91,7 +91,7 @@ jobs: PLATFORMIO_BUILD_FLAGS: -DESPFC_REVISION=${{ env.build_sha }} - name: Build Release Target - if: "startsWith(github.ref, 'refs/tags/')" + if: ${{ startsWith(github.ref, 'refs/tags/') }} run: | platformio run -e ${{ matrix.target }} env: @@ -104,14 +104,14 @@ jobs: - name: Create Development Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ !startsWith(github.ref, 'refs/tags/') }} with: name: ${{ env.build_file_devel }}.bin path: .pio/build/${{ matrix.target }}/firmware.bin - name: Create Development Artifact Merged - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ !startsWith(github.ref, 'refs/tags/') && startsWith(matrix.target, 'esp32') }} with: name: "${{ env.build_file_devel }}_0x00.bin" @@ -119,14 +119,14 @@ jobs: - name: Create Release Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ startsWith(github.ref, 'refs/tags/') }} with: name: ${{ env.build_file_release }}.bin path: .pio/build/${{ matrix.target }}/firmware.bin - name: Create Release Artifact Merged - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ startsWith(github.ref, 'refs/tags/') && startsWith(matrix.target, 'esp32') }} with: name: ${{ env.build_file_release }}_0x00.bin diff --git a/README.md b/README.md index 427b9965..d9fa3ba0 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ The mini, DIY, ~$5 cost, ESP8266/ESP32 based, high performance flight controller ## Features * Frames (Quad X) -* Betaflight contiguration tool compatible (v10.8 or v10.9) +* Betaflight configuration tool compatible (v10.8 or v10.9) * Receiver protocol (8 channel PPM) * SBUS and CRSF Serial Rx protocols on ESP32 and RP2040 * ESC protocols (PWM, Oneshot125, Brushed, Dshot150, Dshot300, Dshot600) diff --git a/docs/esp-fc-esp32-i2c.fzz b/docs/esp-fc-esp32-i2c.fzz new file mode 100644 index 00000000..66834769 Binary files /dev/null and b/docs/esp-fc-esp32-i2c.fzz differ diff --git a/docs/espfc_wemos_mini32.fzz b/docs/esp-fc-esp32-spi.fzz similarity index 94% rename from docs/espfc_wemos_mini32.fzz rename to docs/esp-fc-esp32-spi.fzz index c0c1e463..098f5820 100644 Binary files a/docs/espfc_wemos_mini32.fzz and b/docs/esp-fc-esp32-spi.fzz differ diff --git a/docs/esp-fc-esp8266-i2c.fzz b/docs/esp-fc-esp8266-i2c.fzz new file mode 100644 index 00000000..3edc665f Binary files /dev/null and b/docs/esp-fc-esp8266-i2c.fzz differ diff --git a/docs/espfc_wemos_d1_mini.fzz b/docs/espfc_wemos_d1_mini.fzz deleted file mode 100644 index 3cf947b1..00000000 Binary files a/docs/espfc_wemos_d1_mini.fzz and /dev/null differ diff --git a/docs/images/esp-fc-esp32_i2c_wiring.png b/docs/images/esp-fc-esp32_i2c_wiring.png index 3727d0ae..9b4fb56b 100644 Binary files a/docs/images/esp-fc-esp32_i2c_wiring.png and b/docs/images/esp-fc-esp32_i2c_wiring.png differ diff --git a/docs/images/esp-fc-esp32_spi_wiring.png b/docs/images/esp-fc-esp32_spi_wiring.png index 18a6f8f6..ea5558ce 100644 Binary files a/docs/images/esp-fc-esp32_spi_wiring.png and b/docs/images/esp-fc-esp32_spi_wiring.png differ diff --git a/docs/wiring.md b/docs/wiring.md index 9883ce47..d126bd15 100644 --- a/docs/wiring.md +++ b/docs/wiring.md @@ -8,6 +8,14 @@ ESP32 mcu allows to remap pins, so the wiring is not final and can remap intputs ![ESP-FC ESP32 SPI Wiring](./images/esp-fc-esp32_spi_wiring.png) +**SPI pins** + +| PIN | Name | Module Names | +|----:|------|-----------------| +| 18 | SCK | SCK / SCL | +| 19 | MISO | SDA / SDI | +| 23 | MOSI | SAO / SDO / ADO | + ### ESP32 I2C MPU-6050 gyro ![ESP-FC ESP32 I2C Wiring](./images/esp-fc-esp32_i2c_wiring.png)