from machine import Pin
from neopixel import NeoPixel
import time
#主板上RGB LED接口默认为38引脚
pin = Pin(38, Pin.OUT)
LED = NeoPixel(pin, 1)
print("Hello, ESP32-S3!")
while True:
#将引脚设置为“1”输出电平
LED[0] = (100,0,0)
LED.write()
#延时500ms
time.sleep(0.5)
#将引脚设置为“0”输出电平
LED[0] = (0,0,0)
LED.write()
#延时500ms
time.sleep(0.5)
Loading
esp32-s3-devkitc-1
esp32-s3-devkitc-1