Skip to content

Commit 47cc260

Browse files
committed
【完善】blink 例程
1 parent bc6286c commit 47cc260

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/w601_iot_board/blink.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
import utime as time
1212
from machine import Pin
13-
led = Pin(("X1", 38), Pin.OUT_PP) #create led object from pin 38, Set pin 38 to output mode
13+
14+
PIN_LED_R = 38
15+
16+
led = Pin(("led_red", PIN_LED_R), Pin.OUT_PP) #create led object from pin PIN_LED_R, Set pin PIN_LED_R to output mode
1417

1518
while True:
1619
led.value(0) #Set led turn on

0 commit comments

Comments
 (0)