This commit is contained in:
xyj 2023-12-23 11:52:43 +08:00
parent 1626dac829
commit 59d763e5f4
2 changed files with 28 additions and 8 deletions

20
close_led.py Normal file
View File

@ -0,0 +1,20 @@
'''
实验名称点亮第1个LED
实验平台核桃派
'''
#导入相关模块
import board
from digitalio import DigitalInOut, Direction
if __name__ == '__main__':
try:
# 构建LED对象和初始化
led = DigitalInOut(board) # 定义引脚编号
led.direction = Direction.OUTPUT # IO为输出
led.value = 1 # 输出高电平点亮板载LED蓝灯
# led.value = 0 #输出低电平熄灭板载LED蓝灯
except:
pass

View File

@ -16,8 +16,8 @@ subscribe_topic=lihai_lot_walnutpi_dev_2
# 发布消息的主题
publish_topic=camera_2
info_topic=info_dev_2
username=lihai_lot_land_1
password=lihai_lot_land_1
username=18783045599
password=18783045599
####################################
# 设备3-64G
[lihai_lot_walnutpi_dev_3]
@ -26,8 +26,8 @@ subscribe_topic=lihai_lot_walnutpi_dev_3
# 发布消息的主题
publish_topic=camera_3
info_topic=info_dev_3
username=lihai_lot_land_1
password=lihai_lot_land_1
username=13433212473
password=13433212473
####################################
# 设备4-64G
[lihai_lot_walnutpi_dev_4]
@ -36,8 +36,8 @@ subscribe_topic=lihai_lot_walnutpi_dev_4
# 发布消息的主题
publish_topic=camera_4
info_topic=info_dev_4
username=lihai_lot_land_1
password=lihai_lot_land_1
username=17685151643
password=17685151643
####################################
# 设备5-64G
[lihai_lot_walnutpi_dev_5]
@ -46,8 +46,8 @@ subscribe_topic=lihai_lot_walnutpi_dev_5
# 发布消息的主题
publish_topic=camera_5
info_topic=info_dev_5
username=lihai_lot_land_1
password=lihai_lot_land_1
username=13698151291
password=13698151291
####################################
# 设备6-64G
[lihai_lot_walnutpi_dev_6]