LOADING

加载过慢请开启缓存 浏览器默认开启

arduino基于ESP32基本信息

arduino基于ESP32基本信息

ESP32 c6 IO图

ESP32 wroom 32e IO图

ESP32 c3 IO图

合宙ESP32C3-CORE开发板

ESP32C6 测试代码
测试代码

#include <Adafruit_NeoPixel.h>
constexpr uint8_t LED_PIN = 8;
constexpr uint8_t NUM_LEDS = 1;
Adafruit_NeoPixel rgbLed(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);
struct RGB {
    uint8_t r, g, b;
};

constexpr RGB COLOR_OFF   = {0, 0, 0};
// ...Feel free to add more colors here...
constexpr RGB CUSTOM_COLOR = {255, 0, 255}; 

void setup() {
    rgbLed.begin(); 
    rgbLed.show(); 
}
void setColor(const RGB& color) {
    rgbLed.setPixelColor(0, rgbLed.Color(color.r, color.g, color.b));
    rgbLed.show();
}
void loop() {
    setColor(CUSTOM_COLOR);
    delay(500);
    setColor(COLOR_OFF);
    delay(500);
}

效果

ESP32wroom 32e 测试代码

const int LEDA = 2;

void setup() {
pinMode(LEDA, OUTPUT);
}

void loop()
{
digitalWrite(LEDA, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); //
digitalWrite(LEDA, LOW); // turn the LED off by making the voltage LOW
delay(500); //
}

效果 led闪烁