from machine import Pin from time import sleep print("Hello ESP32!") led=Pin(2, Pin.OUT) count=0 #設定計數器count變數為0 for count in range(5):#設定重複(迴圈)10次 led.value(1) sleep(1) led.value(0) sleep(1) count=count+1#計數器每次加1 #count+=1 print("blink")#印出blink 計數