Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node-wifi-mqtt: Use build environment based on PlatformIO
- Loading branch information
Showing
4 changed files
with
48 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,15 @@ | ||
# makeEspArduino: A makefile for ESP8266/Arduino projects. | ||
# https://github.com/plerup/makeEspArduino | ||
$(eval venvpath := .venv) | ||
$(eval python := $(venvpath)/bin/python) | ||
$(eval pip := $(venvpath)/bin/pip) | ||
$(eval pio := $(venvpath)/bin/pio) | ||
|
||
# Announce path to your "ESP8266 Arduino Core" installation | ||
# Can also be announced via environment variable: export ESP_ROOT=... | ||
# ESP_ROOT=~/sdk/esp8266-arduino | ||
|
||
# Manually enumerate libraries, this is currently the only deterministic way. | ||
LIBS = \ | ||
$(ESP_LIBS)/esp8266 \ | ||
$(ESP_LIBS)/GDBStub \ | ||
$(ESP_LIBS)/SD \ | ||
$(ESP_LIBS)/SPI \ | ||
$(ESP_LIBS)/Wire \ | ||
$(ESP_LIBS)/ESP8266WiFi \ | ||
$(ESP_LIBS)/ESP8266HTTPClient \ | ||
../libraries/SerialDebugger/*.h \ | ||
../libraries/SerialDebugger/*.cpp \ | ||
../libraries/Adafruit_MQTT_Library/*.h \ | ||
../libraries/Adafruit_MQTT_Library/*.cpp \ | ||
../libraries/ArduinoJson/include \ | ||
../libraries/OneWire \ | ||
../libraries/DallasTemperature \ | ||
../libraries/RobTillaart-Arduino/libraries/DHTstable \ | ||
../libraries/RobTillaart-Arduino/libraries/RunningMedian \ | ||
../libraries/HX711 \ | ||
../libraries/ADS1231 | ||
build: setup-virtualenv | ||
$(pio) run | ||
|
||
# Run makeEspArduino | ||
include ../tools/makeEspArduino/makeEspArduino.mk | ||
upload: setup-virtualenv | ||
$(pio) run --target upload --upload-port=${MCU_PORT} | ||
|
||
### FWBUILDER_DIR | ||
### Include helpers from Firmware-Builder directory. | ||
FWBUILDER_DIR = ../tools/Firmware-Builder | ||
include $(FWBUILDER_DIR)/Helper.mk | ||
setup-virtualenv: | ||
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath) | ||
$(pip) install platformio |
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
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,30 @@ | ||
; 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:huzzah] | ||
platform = espressif8266 | ||
board = huzzah | ||
framework = arduino | ||
|
||
monitor_speed = 115200 | ||
|
||
lib_deps = | ||
joaolopesf/SerialDebug@^0.9.82 | ||
OneWire@2.3.5 | ||
HX711@0.7.4 | ||
DallasTemperature@3.8.1 | ||
robtillaart/DHTStable@^0.2.9 | ||
../libraries/ADS1231 | ||
RunningMedian@0.1.15 | ||
ArduinoJson@^5 | ||
https://github.com/daq-tools/Adafruit_MQTT_Library#maxbuffersize-2048 |