Search
How to code for Arduino in terminal
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.
- Install Ino :
pip2 install ino
- Create and initialize the project:
shell
mkdir project cd project ino init
- 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.
ini
[build] board-model = mega2560 [upload] board-model = mega2560 serial-port = /dev/ttyACM1 [serial] serial-port = /dev/ttyACM1
- Code your script by modifying the file
src/sketch.ino
- 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