mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 13:33:39 +00:00
112f6dc01a
This will now just work:
tinygo flash -target=arduino examples/blinky1
9 lines
324 B
JSON
9 lines
324 B
JSON
{
|
|
"llvm-target": "avr-atmel-none",
|
|
"build-tags": ["avr", "avr8", "atmega", "atmega328p", "js", "wasm"],
|
|
"linker": "avr-gcc",
|
|
"pre-link-args": ["-nostdlib", "-T", "targets/avr.ld", "-Wl,--gc-sections", "targets/avr.S"],
|
|
"objcopy": "avr-objcopy",
|
|
"flash": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
|
|
}
|