Open
Description
I suggest changing the use of avrdude for build upload
to ravedude, avoiding the need to manually find and pass the device where the arduino is located.
About ravedude: It's an avrdude wrapper first made for use with Rust and cargo run
, automatically selecting the port the arduino is connected to as well as board and programmer arguments depending on the board name passed to ravedude.
While this would add another dependency in ravedude, it would also remove the requirement to manually specify avrdude arguments, including the correct tty device the arduino is connected to.
The changes to build.zig would be:
- Remove the `flash_command' constant
- change the definition of the avrdude constant with
const avrdude = b.addSystemCommand(&.{
"ravedude",
"uno",
bin_path,
})
Metadata
Metadata
Assignees
Labels
No labels