Compare commits
No commits in common. "598e84603f8558e8b19a847ccf7e8bdad2a6dbf4" and "041bde458c6edc2a0c0f2ab3275bef6239f34c2f" have entirely different histories.
598e84603f
...
041bde458c
|
@ -1,38 +0,0 @@
|
||||||
# A makefile for building the robot's slave software
|
|
||||||
# Uses arduino-cli
|
|
||||||
#
|
|
||||||
# Kitsune Scientific 2021
|
|
||||||
|
|
||||||
# What board to build for and its core
|
|
||||||
CORE ?= arduino:avr
|
|
||||||
FQBN ?= arduino:avr:nano
|
|
||||||
|
|
||||||
# What port to build on
|
|
||||||
ifndef SERIAL_DEV
|
|
||||||
ifneq (,$(wildcard /dev/ttyUSB0))
|
|
||||||
SERIAL_DEV = /dev/ttyUSB0
|
|
||||||
else ifneq (,$(wildcard /dev/ttyACM0))
|
|
||||||
SERIAL_DEV = /dev/ttyACM0
|
|
||||||
else
|
|
||||||
SERIAL_DEV = unknown
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: requirements build upload
|
|
||||||
|
|
||||||
build: crawler_slave.ino
|
|
||||||
arduino-cli core install $(CORE)
|
|
||||||
|
|
||||||
arduino-cli compile -b $(FQBN) crawler_slave
|
|
||||||
|
|
||||||
upload:
|
|
||||||
echo "Would install to $(SERIAL_DEV)"
|
|
||||||
|
|
||||||
requirements:
|
|
||||||
@if [ -e requirements.txt ]; \
|
|
||||||
then while read -r i ; do echo ; \
|
|
||||||
echo "---> Installing " '"'$$i'"' ; \
|
|
||||||
arduino-cli lib install "$$i" ; \
|
|
||||||
done < requirements.txt ; \
|
|
||||||
else echo "---> MISSING requirements.txt file"; \
|
|
||||||
fi
|
|
|
@ -1 +0,0 @@
|
||||||
Servo
|
|
Loading…
Reference in New Issue