-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[node-yun-http] Add PlatformIO and CI/GHA configurations
Also, remove previous Makefile-based build system.
- Loading branch information
Showing
8 changed files
with
71 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
Makefile | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$(eval venvpath := .venv) | ||
$(eval python := $(venvpath)/bin/python) | ||
$(eval pip := $(venvpath)/bin/pip) | ||
$(eval pio := $(venvpath)/bin/pio) | ||
|
||
|
||
build: setup-virtualenv | ||
$(pio) run | ||
|
||
upload: setup-virtualenv | ||
$(pio) run --target upload --upload-port=${MCU_PORT} | ||
|
||
setup-virtualenv: | ||
@test -e $(python) || python3 -m venv $(venvpath) | ||
$(pip) install platformio |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
; PlatformIO Project Configuration File for Mois sensor node | ||
; | ||
; Please visit documentation for the other options and examples | ||
; https://docs.platformio.org/en/latest/projectconf/ | ||
|
||
[platformio] | ||
src_dir = . | ||
|
||
monitor_speed = 115200 | ||
|
||
[common] | ||
lib_deps = | ||
../libraries/ADS1231 | ||
adafruit/Adafruit TSL2591 Library@1.4.3 | ||
adafruit/DHT sensor library@1.4.4 | ||
arduino-libraries/Bridge@1.7.0 | ||
milesburton/DallasTemperature@3.11.0 | ||
paulstoffregen/OneWire@2.3.5 | ||
robtillaart/RunningMedian@0.3.7 | ||
watterott/digitalWriteFast@1.0.0 | ||
|
||
[env:uno] | ||
platform = atmelavr | ||
board = uno | ||
framework = arduino | ||
lib_deps = | ||
${common.lib_deps} |