remote/remote/Makefile
2022-03-29 19:26:41 -04:00

23 lines
482 B
Makefile

###############################################################################
# Tyler Perkins
# 27-3-22
# Arduino remote controller
#
# Target board and cpu
# Default Arduino pro mini@5V
FQBN = arduino:avr:pro
CPU = :cpu=16MHzatmega328
# Serial port for Programmer
PORT = /dev/ttyUSB0
# path to the ino file
TARGET = ./remote.ino
compile: $(TARGET)
arduino-cli compile -b $(FQBN)$(CPU) $(TARGET)
upload: compile
sudo arduino-cli upload -b $(FQBN) -p /dev/ttyUSB0 $(TARGET)