VSCODE版本
Platform IO以后简称PIO,PIO版本
编译和下载按钮
在项目的platformio.ini文件中添加(ini文件注释不支持中文)
monitor_speed = 115200 ;monitor baud
upload_speed = 921600 ;upload baud
ESP8266 PIO测试程序
#include <Arduino.h>
void setup() {
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is active low on the ESP-01)
delay(1000); // Wait for a second
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
Serial.println("hello你好");
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}