Skip to content
Snippets Groups Projects
Commit 1d5acb26 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Makefile und Download-Skript für Arduino-Programmierung

parent 97c0b541
No related branches found
No related tags found
No related merge requests found
%.elf: %.c
avr-gcc -Wall -Os -mmcu=atmega328p $< -o $@
%.hex: %.elf
avr-objcopy -O ihex $< $@
download:
./download.sh
port=$(ls -rt /dev/ttyACM* | tail -1)
echo avrdude -P $port -c arduino -p m328p -U flash:w:$(ls -rt *.hex | tail -1)
avrdude -P $port -c arduino -p m328p -U flash:w:$(ls -rt *.hex | tail -1) 2>/dev/null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment