mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-07 08:33:09 +03:00
Move the main ATMega328P sketch into a sub-directory and add the Leonardo sketch to a sub-directory from the branch. Helps folks that download the repository via ZIP file and will allow different board support that is not easily done via ifdef checks.
This commit is contained in:
24
logic_analyzer_leonardo/Makefile
Normal file
24
logic_analyzer_leonardo/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Makefile for an Arduino based logic analyzer using the arduino-cli
|
||||
#
|
||||
|
||||
TARGET = logic_analyzer_leonardo
|
||||
FQBN = arduino:avr:leonardo
|
||||
SERIAL = /dev/ttyUSB*
|
||||
|
||||
|
||||
all:
|
||||
@echo ""
|
||||
@echo "---> run 'make build' to compile for Arduino Leonardo"
|
||||
@echo "---> run 'make upload' to upload to /dev/ttyUSB*"
|
||||
@echo ""
|
||||
|
||||
build:
|
||||
arduino-cli compile --fqbn $(FQBN) $(TARGET)
|
||||
|
||||
upload:
|
||||
arduino-cli upload --fqbn $(FQBN) --port $(SERIAL) $(TARGET)
|
||||
|
||||
#
|
||||
# end-of-file
|
||||
#
|
||||
Reference in New Issue
Block a user