eel4746_avr_piano

For our Microprocessor's class final project, we chose to make a chiptune piano using AVR C on two Arduino UNOs.
Log | Files | Refs | README | LICENSE

commit 661b58dfd04e84b38d2202387a9f67ff1515e03a
parent 8f258e4e02e1821692d39d87d4073e884bc2798a
Author: Vineet K <git@vineetk.net>
Date:   Wed, 17 Apr 2024 13:59:33 -0400

update makefile for upcoming lcd code

Diffstat:
MMakefile | 16+++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,10 +4,20 @@ OBJCOPY = avr-objcopy PORT ?= /dev/ttyACM0 -all: +all: notes lcd + +notes: + ${CC} ${CFLAGS} main.c + ${OBJCOPY} -j .text -j .data -O ihex a.out main.hex + rm -f a.out + +flash_notes: notes + avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i + +lcd: ${CC} ${CFLAGS} main.c ${OBJCOPY} -j .text -j .data -O ihex a.out main.hex rm -f a.out -flash: all - avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -b 115200 -U flash:w:main.hex:i +flash_lcd: notes + avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i