Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/platformio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PlatformIO CI

on:
release:
types: [published]

push:
branches:
- main
- 'releases/**'

pull_request:
# Sequence of patterns matched against refs/heads
branches:
- main
- 'releases/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO Project
run: pio run
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
],
"unwantedRecommendations": [
"ms-vscode.cpptools-extension-pack"
]
}
3 changes: 2 additions & 1 deletion ESP32RET.ino
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ void setup()
//if nothing is connected. But, you can't set 0 or writing rapidly to USB will lose data. It needs
//some sort of timeout but I'm not sure exactly how much is needed or if there is a better way
//to deal with this issue.
Serial.setTxTimeoutMs(2);
// TODO: there is no such method =(
// Serial.setTxTimeoutMs(2);
#endif
Serial.begin(1000000); //for production
//Serial.begin(115200); //for testing
Expand Down
27 changes: 27 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
; 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

[platformio]
src_dir = ./

[env]
platform = espressif32
framework = arduino
lib_deps =
fastled/FastLED @ 3.10.0
https://github.com/collin80/can_common#8585f9dc807ebbeedeb509d74159f40f538d2d65
https://github.com/collin80/esp32_can#6d835ae82d46748e8267b350680c851a46b38eea
https://github.com/collin80/esp32_mcp2517fd#15624220ba3bc2c3e461dc4a0c8e2e3a20d4e94d

[env:esp32-s3]
board = esp32-s3-devkitm-1

[env:esp32]
board = esp32dev