A
A
Alexey2019-08-11 06:39:56
Arduino
Alexey, 2019-08-11 06:39:56

How to solve problem with PlatformIO in VScode?

Greetings. The essence of the problem is that when you open any platformio example in vscode, the latter swears at "Arduino.h". Reboots did not help, deleting the .vscode folder, changing the directory too, I did not find effective methods on the Internet. All the latest updates are on.
5d4f8dff58fc4265197621.png
5d4f8df8300d7488723136.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
Nihhilistum, 2019-08-12
@Nihhilistum

Check for the presence of the Arduino.h library . Perhaps the file was accidentally deleted or the PlatformIO core was installed incorrectly (not VScode, but PlatformIO). Then you will have to re-download the drivers for the MK (for the first case) or reinstall PlatformIO (delete all the folders associated with it in the directories and reinstall it in VScode itself). Well, the most naive: double-check for which board you created the sketch? If you accidentally specified ATmega, then, of course, it will swear at Arduino.h

E
Evgeny, 2019-11-09
Lubyanoy @arswarog

In platformio.ini
check for the presence of the line
framework = arduino

T
taisp, 2017-12-26
@taisp

You

if (a == 2){
console.log(a);
}

Executed in function body. Try like this:
$(".right").click(function () {
a +=1;
if (a == 2){
console.log(a);
}
});

E
Eugene, 2017-12-27
@Eugeny1987

var a = 1;
$(".right").click(function () {
window.a +=1;
});
if (a == 2){
console.log(a);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question