add skeleton lcd.c

This commit is contained in:
Vineet K 2024-04-17 14:07:35 -04:00 committed by Shokara Kou
parent 661b58dfd0
commit 0167a8d665
3 changed files with 13 additions and 6 deletions

View File

@ -7,17 +7,17 @@ PORT ?= /dev/ttyACM0
all: notes lcd all: notes lcd
notes: notes:
${CC} ${CFLAGS} main.c ${CC} ${CFLAGS} notes.c
${OBJCOPY} -j .text -j .data -O ihex a.out main.hex ${OBJCOPY} -j .text -j .data -O ihex a.out notes.hex
rm -f a.out rm -f a.out
flash_notes: notes 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: lcd:
${CC} ${CFLAGS} main.c ${CC} ${CFLAGS} lcd.c
${OBJCOPY} -j .text -j .data -O ihex a.out main.hex ${OBJCOPY} -j .text -j .data -O ihex a.out lcd.hex
rm -f a.out rm -f a.out
flash_lcd: notes 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

7
lcd.c Normal file
View File

@ -0,0 +1,7 @@
#include <avr/io.h>
int
main()
{
}

View File