projects
/
Arduino-Nano-VA-meter
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f3baf83
)
build using make
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 15 Oct 2016 15:57:25 +0000
(17:57 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 15 Oct 2016 15:57:36 +0000
(17:57 +0200)
Makefile
[new file with mode: 0644]
patch
|
blob
diff --git a/Makefile
b/Makefile
new file mode 100644
(file)
index 0000000..
04c71c3
--- /dev/null
+++ b/
Makefile
@@ -0,0
+1,6
@@
+all:
+ avr-gcc -mmcu=atmega328p -Wall -Os -o main.elf main.c -w
+ avr-objcopy -j .text -j .data -O ihex main.elf main.hex
+
+flash:
+ avrdude -c usbtiny -p m328p -U flash:w:"main.hex":a