If you feel tired about the Arduino IDE and you are fan of terminal. I recommend you to try ‘ino’ as well as micro as editor.

Ino

Ino is a Python tool to build and upload code to Arduino boards. It is also very lightweight and fully open-source.

  1. Install Ino : pip2 install ino
  2. Create and initialize the project:
mkdir project
cd project
ino init
  1. To configure the settings about the board, you can use the following template: name this file ino.ini and add it into the root folder of your project.
[build]
board-model = mega2560

[upload]
board-model = mega2560
serial-port = /dev/ttyACM1

[serial]
serial-port = /dev/ttyACM1
  1. Code your script by modifying the file src/sketch.ino
  2. Build and upload to the Arduino (using the settings of the file ino.ini) run: ìno build && ino upload

Now each time you want to upload the project to the board you just need to run ino buid && ino upload. Ino will use the configuration of ino.ini to build your app.

Micro

This is not directly linked to Arduino but this is by far my preferred editor for terminal. You can use the shortcuts of nano but you have the customization and the code syntax of vim. The default colorscheme of Micro is gruvbox.

If you want more information about this editor, you can checkout: https://micro-editor.github.io/

Conclusion

I personally love them because I hate the default IDE and I am a big fan of developing app fully in terminal.

What do you think?

  • @agitated_judge@sh.itjust.works
    link
    fedilink
    210 months ago

    I’d love to use something like this, I prefer to do most things in a terminal after all. However, the developer has stopped working on this tool since a couple of years now. The repository at https://github.com/amperka/ino has been archived. There are lots of forks, but most seem mostly abandoned too, one additional commit and that’s it. So, even if it works now, it will probably not work in the future, new boards won’t be supported etc.

  • @Oblong
    link
    110 months ago

    Thanks! That is super helpful.

    Quick question, is it possible to include libraries?

  • @bizdelnick
    link
    110 months ago

    You may use Arduino-Makefile (arduino-mk package in debian) or one of similar projects. Once I wrote a similar makefile, it is quite easy; you only need to look at Arduino IDE output to know what commands need to be executed.