mirror of
https://codeberg.org/eel4746_piano/avr_piano.git
synced 2024-11-22 01:00:29 -05:00
add skeleton lcd.c
This commit is contained in:
parent
661b58dfd0
commit
0167a8d665
12
Makefile
12
Makefile
@ -7,17 +7,17 @@ PORT ?= /dev/ttyACM0
|
||||
all: notes lcd
|
||||
|
||||
notes:
|
||||
${CC} ${CFLAGS} main.c
|
||||
${OBJCOPY} -j .text -j .data -O ihex a.out main.hex
|
||||
${CC} ${CFLAGS} notes.c
|
||||
${OBJCOPY} -j .text -j .data -O ihex a.out notes.hex
|
||||
rm -f a.out
|
||||
|
||||
flash_notes: notes
|
||||
avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i
|
||||
avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:notes.hex:i
|
||||
|
||||
lcd:
|
||||
${CC} ${CFLAGS} main.c
|
||||
${OBJCOPY} -j .text -j .data -O ihex a.out main.hex
|
||||
${CC} ${CFLAGS} lcd.c
|
||||
${OBJCOPY} -j .text -j .data -O ihex a.out lcd.hex
|
||||
rm -f a.out
|
||||
|
||||
flash_lcd: notes
|
||||
avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i
|
||||
avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:lcd.hex:i
|
||||
|
Loading…
Reference in New Issue
Block a user