23 lines
482 B
Makefile
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)
|