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