8浏览
查看: 8|回复: 1

[求助] 关于nfc近场通讯模块的使用

[复制链接]
求助nfc近场通讯模块micropython怎么用(microbitV2)
这段代码会报错:
  1. from microbit import *
  2. from time import sleep
  3. import PN532
  4. i2c.init(freq=100000,scl=pin16,sda=pin12)
  5. nfc=PN532()
  6. nfc.begin()
  7. while True:
  8.     if nfc.scan():
  9.         print(nfc.read_uid())
复制代码
Traceback (most recent call last):
  File "main.py",line 1,in <module>
  File "<string>",line 96,in <module>
  File "<string>",line 14,in begin
  File "<string>",line 87,in write_command
  File "<string>",ling 90,in write_to_addr
OSERROR: [Errno19] ENODEV


ljs硬件  中级技师
 楼主|

发表于 2 小时前

使用BXY Python Editor V1.1(220713)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4 备案 沪公网安备31011502402448

© 2013-2026 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail