本站改版新增arduino频道
合宙esp32c3 LED闪烁
#include <Arduino.h> #define PIN_LED1 12 #define PIN_LED2 13 void setup() { Serial.begin(115200); Serial.println("Hello ESP32C3!!"); pinMode(PIN_LED1, OUTPUT); pinMode(PIN_LED2, OUTPUT); } void loop() { digitalWrite(PIN_LED1, HIGH); digitalWrite(PIN_LED2, LOW); delay(200); digitalWrite(PIN_LED2, HIGH); digitalWrite(PIN_LED1, LOW); delay(200); }
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0092999935150146 seconds