Skip to content
gepd edited this page Sep 17, 2017 · 6 revisions

Deviot

Sublime theme used: Boxy

Deviot is an alternative of Arduino IDE, to make this possible, this plugin use PlatformIO Core.

The main difference you can find in PIO is it has is own project file/folder structure. In The Arduino IDE your project will look like this:

- mysketchname/mysketchname.ino

But in PlatformIO it's different:

[projectname]
├── lib
├── platformio.ini
└── src
    └── mysketchname.ino

If you came from the Arduino IDE, It could be hard to understand or annoying. By the default Deviot will maintain your project like always but if you want try the PIO way you can go to Deviot Menu > Options > Use PlatformIO Structure, that way your projects will be treated at the PIO style.

Deviot will automatize most of steps to work with PIO, in all basic options you will not need to create any folder/file. For example you can create a new sketch from Deviot > New Sketch, type the name of your sketch and select the destination folder, your sketch will be stored in destination_folder/sketch_name/files

There are two ways to create a new file, if you enter myfile.ino, you will end with a file like this:

//myfile.ino

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

If you enter myfile.cpp, you will end with this file:

//myfile.cpp

#include <avr/io.h>
#include <util/delay.h>

int main(void){
    // put your main code here:
}

If you enter a name whitout extension, deviot will use the Arduino template by default, but you can change this behavior from Deviot Menu > Options > Use CPP on New File, this way you will end with the c++ template.

Clone this wiki locally