7
7
workflow_dispatch :
8
8
branches :
9
9
10
- # env:
10
+ env :
11
+ ARDUINO_RP2040_DIR : .arduino15/packages/rp2040/hardware/rp2040/4.3.1
11
12
# DATALOGGER_IOT_APP_KEY: ${{ secrets.DATALOGGER_IOT_APP_KEY }}
12
13
# DATALOGGER_IOT_ID_KEY: ${{ secrets.DATALOGGER_IOT_ID_KEY }}
13
14
@@ -52,17 +53,24 @@ jobs:
52
53
- name : Arduino - Install rp2040 platform
53
54
run :
arduino-cli core install rp2040:[email protected]
54
55
55
- - name : Debug ...
56
- run : ls -la $HOME/.arduino15/packages
56
+ - name : Patch in our IOT Node boards
57
+ run : |
58
+ cd patch
59
+ cp boards.txt $HOME/$ARDUINO_RP2040_DIR/boards.txt
60
+ cp -R sparkfun_iotnode_lorawan $HOME/$ARDUINO_RP2040_DIR/variants/
61
+ cp sparkfun_iotnode_lorawan_rp2350.h $HOME/$ARDUINO_RP2040_DIR//pico-sdk/src/boards/include/boards/
62
+ cd ..
57
63
58
64
# install the libraries Flux uses
59
65
- name : Install Flux dependant libraries
60
66
run : ./flux-sdk/install-libs.sh
61
67
68
+ # currently using a local copy of the library that removed some warning messages - source is here:
69
+ # arduino-cli lib install --git-url "https://github.com/felixgalindo/XBeeArduino.git"
62
70
- name : Install The XBee LoRaWAN library
63
71
run : |
64
72
arduino-cli config set library.enable_unsafe_install true
65
- arduino-cli lib install --git-url "https://github.com/felixgalindo /XBeeArduino.git"
73
+ arduino-cli lib install --git-url "https://github.com/gigapod /XBeeArduino.git"
66
74
arduino-cli lib install FastLED
67
75
68
76
# Compile time - build the Firmware for the data logger.
@@ -72,13 +80,13 @@ jobs:
72
80
73
81
- name : Compile DataLogger firmware binary
74
82
run :
75
- arduino-cli compile --fqbn rp2040:rp2040:sparkfun_promicrorp2350 ./sfeIoTNodeLoRaWAN/sfeIoTNodeLoRaWAN.ino
83
+ arduino-cli compile --fqbn rp2040:rp2040:sparkfun_iotnode_lorawan ./sfeIoTNodeLoRaWAN/sfeIoTNodeLoRaWAN.ino
76
84
--export-binaries --clean --library `pwd`/SparkFun_IoTNodeLoRaWAN
77
85
78
86
# Upload the build files - bootloader, paritions, firmware
79
87
- uses : actions/upload-artifact@v3
80
88
with :
81
89
name : Upload Build
82
- path : sfeIoTNodeLoRaWAN/build/rp2040.rp2040.sparkfun_promicrorp2350 /sfeIoTNodeLoRaWAN.ino.uf2
90
+ path : sfeIoTNodeLoRaWAN/build/rp2040.rp2040.sparkfun_iotnode_lorawan /sfeIoTNodeLoRaWAN.ino.uf2
83
91
84
92
0 commit comments