Skip to content

Commit

Permalink
树莓派PICO点灯
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkun5330 authored Nov 5, 2022
1 parent 6fba752 commit a0acb1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 点灯.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from machine import Pin
import time

led=Pin(25,Pin.out)

while 1:
led.high()
time.sleep(1)
led.low()
time.sleep(1)

0 comments on commit a0acb1c

Please sign in to comment.