diff options
| -rw-r--r-- | Makefile | 12 | ||||
| -rw-r--r-- | lcd.c | 7 | ||||
| -rw-r--r-- | notes.c (renamed from main.c) | 0 |
3 files changed, 13 insertions, 6 deletions
| @@ -7,17 +7,17 @@ PORT ?= /dev/ttyACM0 | |||
| 7 | all: notes lcd | 7 | all: notes lcd |
| 8 | 8 | ||
| 9 | notes: | 9 | notes: |
| 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 | ||
| 14 | flash_notes: notes | 14 | flash_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 | ||
| 17 | lcd: | 17 | lcd: |
| 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 | ||
| 22 | flash_lcd: notes | 22 | flash_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 |
| @@ -0,0 +1,7 @@ | |||
| 1 | #include <avr/io.h> | ||
| 2 | |||
| 3 | int | ||
| 4 | main() | ||
| 5 | { | ||
| 6 | |||
| 7 | } | ||
