Skip to content

Commit 9f98bc9

Browse files
committed
Create LED.py
1 parent 5b273dc commit 9f98bc9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

boards/bearpi/LED/LED.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'''
2+
3+
BEARPI LED demo
4+
5+
'''
6+
7+
from machine import Pin
8+
9+
LED = Pin(Pin.GPIO4, Pin.OUT)
10+
LED(1)
11+
LED.write(0)

0 commit comments

Comments
 (0)