Updated structure and files for actions
This commit is contained in:
parent
cc90dee57d
commit
6dd8f5026d
|
|
@ -13,16 +13,22 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install repo as library
|
||||
run: |
|
||||
mkdir -p "$HOME/Arduino/libraries"
|
||||
ln -s "$PWD" "$HOME/Arduino/libraries/."
|
||||
|
||||
- name: Install Arduino CLI
|
||||
run: |
|
||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
|
||||
arduino-cli core update-index
|
||||
arduino-cli core update-index --additional-urls https://dl.espressif.com/dl/package_esp32_index.json
|
||||
arduino-cli core install esp32:esp32 --additional-urls https://dl.espressif.com/dl/package_esp32_index.json
|
||||
|
||||
arduino-cli core update-index --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
|
||||
arduino-cli core install esp32:esp32:esp32 --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
|
||||
|
||||
- name: Compile sketch
|
||||
run: |
|
||||
arduino-cli compile --fqbn esp32:esp32:nodemcu-32s ${{ github.workspace }}/examples/dshot300
|
||||
arduino-cli compile --fqbn esp32:esp32:esp32 ${{ github.workspace }}/examples/dshot300
|
||||
env:
|
||||
ARDUINO_LIBRARY_PATH: ${{ github.workspace }}/libraries
|
||||
ARDUINO_DATA_PATH: ${{ github.workspace }}/arduino-data
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// ...some very simple DShot example generating a DShot300 signal.
|
||||
#include <Arduino.h>
|
||||
#include <DShotRMT.h>
|
||||
#include "DShotRMT.h"
|
||||
|
||||
// Define USB serial port if available
|
||||
#ifdef SERIAL
|
||||
|
|
|
|||
Loading…
Reference in New Issue