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:
Andrew Gillham
2021-12-21 11:27:31 -06:00
parent 4f7f86f6d4
commit 57b1f18900
7 changed files with 29991 additions and 3 deletions

View 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
#

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff