From 0167a8d66544705eb256a59ea98e8b23f339da60 Mon Sep 17 00:00:00 2001 From: Vineet K Date: Wed, 17 Apr 2024 14:07:35 -0400 Subject: [PATCH] add skeleton lcd.c --- Makefile | 12 ++++++------ lcd.c | 7 +++++++ main.c => notes.c | 0 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 lcd.c rename main.c => notes.c (100%) diff --git a/Makefile b/Makefile index f674c9e..342630b 100644 --- a/Makefile +++ b/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 diff --git a/lcd.c b/lcd.c new file mode 100644 index 0000000..ccc9d52 --- /dev/null +++ b/lcd.c @@ -0,0 +1,7 @@ +#include + +int +main() +{ + +} diff --git a/main.c b/notes.c similarity index 100% rename from main.c rename to notes.c