Skip to content

Commit

Permalink
chore: Configure TFT_eSPI and configs.h for Marauder M5Cardputer
Browse files Browse the repository at this point in the history
  • Loading branch information
guidoaguiar committed May 6, 2024
1 parent 2fbb143 commit 3e9217d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ jobs:
cat "$i" | grep compiler.c.elf.libs.esp32
done
- name: Configure TFT_eSPI and configs.h for Marauder M5Cardputer
run: |
# Configure TFT_eSPI
sed -i 's/^#include <User_Setup.h>/\/\/#include <User_Setup.h>/' /home/runner/Arduino/libraries/CustomTFT_eSPI/User_Setup_Select.h
sed -i 's/^\/\/#include <User_setup_marauder_m5cardputer.h>/#include <User_setup_marauder_m5cardputer.h>/' /home/runner/Arduino/libraries/CustomTFT_eSPI/User_Setup_Select.h
# Configure configs.h
sed -i 's/^ #define MARAUDER_REV_FEATHER/ \/\/#define MARAUDER_REV_FEATHER/' esp32_marauder/configs.h
sed -i 's/^ #define MARAUDER_MINI/ \/\/#define MARAUDER_MINI/' esp32_marauder/configs.h
sed -i 's/^ #define MARAUDER_V4/ \/\/#define MARAUDER_V4/' esp32_marauder/configs.h
sed -i 's/^ #define MARAUDER_V6/ \/\/#define MARAUDER_V6/' esp32_marauder/configs.h
sed -i 's/^ \/\/#define MARAUDER_M5CARDPUTER/ #define MARAUDER_M5CARDPUTER/' esp32_marauder/configs.h
- name: Build Marauder for M5Cardputer
uses: ArminJo/[email protected]
with:
sketch-names: esp32_marauder.ino
arduino-board-fqbn: esp32:esp32:esp32s2:PartitionScheme=min_spiffs,FlashSize=4M,PSRAM=enabled
extra-arduino-cli-args: "--warnings none"

- name: Rename Marauder M5Cardputer bin
run: |
mv ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.ino.bin ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.m5cardputer.bin
- name: Configure configs.h for Flipper Zero WiFi Dev Board
run: |
sed -i 's/^ #define MARAUDER_REV_FEATHER/ \/\/#define MARAUDER_REV_FEATHER/' esp32_marauder/configs.h
Expand Down Expand Up @@ -554,6 +578,13 @@ jobs:
path: ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.rev_feather.bin
retention-days: 5

- name: "Upload M5Cardputer Artifact"
uses: actions/upload-artifact@v3
with:
name: esp32_marauder.m5cardputer.bin
path: ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.m5cardputer.bin
retention-days: 5

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[submodule "esp32_marauder/libraries/TFT_eSPI"]
path = esp32_marauder/libraries/TFT_eSPI
url = https://github.com/justcallmekoko/TFT_eSPI.git
# url = https://github.com/Bodmer/TFT_eSPI.git
[submodule "esp32_marauder/libraries/JPEGDecoder"]
path = esp32_marauder/libraries/JPEGDecoder
url = https://github.com/Bodmer/JPEGDecoder.git
Expand Down

0 comments on commit 3e9217d

Please sign in to comment.