first commit
This commit is contained in:
commit
5893b00dd2
1669 changed files with 1982740 additions and 0 deletions
62
libraries/HX711_Arduino_Library/Makefile
Normal file
62
libraries/HX711_Arduino_Library/Makefile
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
# ============
|
||||
# Main targets
|
||||
# ============
|
||||
|
||||
|
||||
# -------------
|
||||
# Configuration
|
||||
# -------------
|
||||
|
||||
$(eval venvpath := .venv2)
|
||||
$(eval pip := $(venvpath)/bin/pip)
|
||||
$(eval python := $(venvpath)/bin/python)
|
||||
$(eval platformio := $(venvpath)/bin/platformio)
|
||||
|
||||
# Setup Python virtualenv
|
||||
setup-virtualenv:
|
||||
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
|
||||
|
||||
|
||||
# ----------
|
||||
# PlatformIO
|
||||
# ----------
|
||||
|
||||
install-platformio: setup-virtualenv
|
||||
@$(pip) install platformio --quiet
|
||||
|
||||
build-all: install-platformio
|
||||
@$(platformio) run
|
||||
|
||||
build-env: install-platformio
|
||||
@$(platformio) run --environment $(environment)
|
||||
|
||||
|
||||
# Note: This are legacy build targets, the new ones are defined through `platformio.ini`.
|
||||
|
||||
ci-all: install-platformio
|
||||
# atmelavr
|
||||
$(platformio) ci --board=megaatmega2560 --lib="." examples/HX711_basic_example
|
||||
$(platformio) ci --board=megaatmega2560 --lib="." examples/HX711_timeout_example
|
||||
$(platformio) ci --board=megaatmega2560 --lib="." examples/HX711_full_example
|
||||
|
||||
# atmelavr
|
||||
$(MAKE) ci-basic board=feather328p
|
||||
|
||||
# espressif8266
|
||||
$(MAKE) ci-basic board=huzzah
|
||||
|
||||
# espressif32
|
||||
$(MAKE) ci-basic board=lopy4
|
||||
|
||||
# atmelsam
|
||||
$(MAKE) ci-basic board=adafruit_feather_m0
|
||||
$(MAKE) ci-basic board=adafruit_feather_m4
|
||||
|
||||
# bluepill
|
||||
$(MAKE) ci-basic board=bluepill_f103c8
|
||||
|
||||
ci-basic:
|
||||
$(platformio) ci --board=$(board) --lib="." examples/HX711_basic_example --verbose
|
||||
|
||||
clean:
|
||||
$(platformio) run -t clean
|
||||
Loading…
Add table
Add a link
Reference in a new issue