This commit is contained in:
xyj 2023-12-25 13:24:25 +08:00
parent cfdfbbc2e1
commit 73177bd792
2 changed files with 1 additions and 14 deletions

View File

@ -1,14 +0,0 @@
import board
print(board.CS1)
from digitalio import DigitalInOut, Direction
if __name__ == '__main__':
try:
print(digitalio)
# 构建LED对象和初始化
led = DigitalInOut(board) # 定义引脚编号
led.direction = Direction.OUTPUT # IO为输出
led.value = 0 # 输出低电平熄灭板载LED蓝灯
print("已经熄灭")
except Exception as e:
print(e)
pass

1
test_micropyhon.py Normal file
View File

@ -0,0 +1 @@
print(help('modules'))