summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
-rw-r--r--lcd.c7
-rw-r--r--notes.c (renamed from main.c)0
3 files changed, 13 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index f674c9e..342630b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,17 +7,17 @@ PORT ?= /dev/ttyACM0
7all: notes lcd 7all: notes lcd
8 8
9notes: 9notes:
10 ${CC} ${CFLAGS} main.c 10 ${CC} ${CFLAGS} notes.c
11 ${OBJCOPY} -j .text -j .data -O ihex a.out main.hex 11 ${OBJCOPY} -j .text -j .data -O ihex a.out notes.hex
12 rm -f a.out 12 rm -f a.out
13 13
14flash_notes: notes 14flash_notes: notes
15 avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i 15 avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:notes.hex:i
16 16
17lcd: 17lcd:
18 ${CC} ${CFLAGS} main.c 18 ${CC} ${CFLAGS} lcd.c
19 ${OBJCOPY} -j .text -j .data -O ihex a.out main.hex 19 ${OBJCOPY} -j .text -j .data -O ihex a.out lcd.hex
20 rm -f a.out 20 rm -f a.out
21 21
22flash_lcd: notes 22flash_lcd: notes
23 avrdude -p atmega328p -c arduino -P ${PORT} -b 115200 -U flash:w:main.hex:i 23 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 @@
1#include <avr/io.h>
2
3int
4main()
5{
6
7}
diff --git a/main.c b/notes.c
index 448d7f7..448d7f7 100644
--- a/main.c
+++ b/notes.c