6 ms·
As always, there’s are emacs options built on top of that: https://www.emacswiki.org/emacs/ArduinoSupport https://www.emacswiki.org/emacs/ArduinoSupport
by sixstringtheory 4y ago
As always, there’s are emacs options built on top of that: https://www.emacswiki.org/emacs/ArduinoSupport https://www.emacswiki.org/emacs/ArduinoSupport
- morelisp 4y agoHaving lost several hours once trying to set up Arduino.mk properly, I would strongly recommend not using anything suggested there and opting for a Makefile calling arduino-cli and normal c++-mode, alongside arduino-language-server.
- sixstringtheory 4y agoYeah I’d personally start by just wrapping common arduino cli commands in elisp functions with key bindings for easy execution and go from there.
- morelisp 4y agoIn case it wasn't clear the first time: I would not even do that. Write a makefile, use your regular M-x recompile etc. bindings. Configure `make install` to upload it, so e.g `projectile-install-project` does the right thing. The more you treat "Arduino project" differently from any other project, the less sense it makes to be using Emacs instead of the Arduino IDE.