These three files (well, plus arduino-mk, which I've tested working perfectly out-of-the-box on both Ubuntu 18.04 and Debian 9,) are all you need to get started programming an Arduino in your favorite IDE, on your current Linux setup.
- Drop
99-Arduino.rules
in/etc/udev/rules.d/
(don't forget to edit your usergroup into it!) - Run #
udevadm control --reload-rules
- Run #
apt install arduino-mk
- Copy this
Makefile
andmain.ino
into a folder - Write your program into
main.ino
- Run
make clean upload minicom
to take it for a spin! - You might have to edit the
Makefile
to setBOARD_TAG
andMCU
if it's not working right - Don't forget to use version control!
- (*Especially when the project is just getting started. You will break your code and be unable to fix it at some point.)