3 ms·
PSA: there is also the "arduino-cli" which lets us use other, everyday tools. https://arduino.github.io/arduino-cli https://arduino.github.io/arduino-cli
by tejtm 4y ago
PSA: there is also the "arduino-cli" which lets us use other, everyday tools.
https://arduino.github.io/arduino-cli https://arduino.github.io/arduino-cli
- Cloudef 4y agoYes, arduino-cli is very nice. You get the convenience of arduino ecosystem (prebuilt cross-compilers, board files, libraries), without the downsides of using full blown IDE.
- sixstringtheory 4y agoAs 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.