A getting started project for programming Arduino Uno board in Linux.
https://code.visualstudio.com/
Install PlatformIO IDE for VSCode:
Getting Started with PlatformIO
VSCode Extension:
https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide
- Create a New Project
- Configure it for Arduino Uno
Open arduino_start/src/main.cpp
and write your code:
In order to upload the compiled program to your board you should have access to serial ports. This is done by adding your user to dialout
and tty
groups:
sudo usermod -a -G dialout $USER
sudo usermod -a -G tty $USER
You can verify if your user is added to dialout
and tty
groups using this command:
groups $USER
Note: You should log out and log in or reboot your computer in order to this configurations take place.
Upload your program to Arduino Uno:
You can access a serial port and monitor it in Terminal of VSCode using PlatformIO: