Software, Hardware and Development
Download Visual Studio Code
- move Visual Studio Code.app to Program Folder
Download Arduino IDE
- move Arduino.app to Program Folder
Visual Studio Code Extension PlatformIO
Visual Studio Code Extension Microsoft C/C++ IntelliSense, debugging, and code browsing.
PlatformIO for Arduino, ESP8266, and ESP32 Tutorial
// source: BitBastelei #310 – VSCode und PlatformIO statt Arduino IDE
// https://youtu.be/Yb-HOBynJdc
#include <Arduino.h>
#define GREENLED 13
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(GREENLED,OUTPUT);
Serial.println(“start”);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(GREENLED,LOW);
Serial.println(“the green led is on”);
delay(1000);
digitalWrite(GREENLED,HIGH);
Serial.println(“the green led is on”);
delay(1000);
}