![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
lingboweitu
凌波微步,动若脱兔。
展开
-
pyserial的踩坑记录
20200603——在windows中出现module ‘serial’ has no attribute ‘Serial’在windows操作系统命令行测试serial模块import serialser = serial.Serial(‘COM15’)出现异常module ‘serial’ has no attribute ‘Serial’网上搜了一下,没找到具体的方案。后面尝试卸载serial模块pip uninstall serial最后出现Successfully uninstall原创 2020-06-03 20:44:35 · 1508 阅读 · 0 评论 -
pyserial学习笔记1——(官方文档简要注释及tools的使用示例)
pyserial的官方网站:https://pypi.org/project/pyserial/稳定版本的文档链接:http://pythonhosted.org/pyserial/稳定版本的下载链接:https://pypi.python.org/pypi/pyserial简介:pyserial模块封装了对串行端口的访问。 为运行在在Windows,OSX,Linux,BSD(几乎任何兼容POSIX的系统)和IronPython的Python提供后端。特性:(1)适应任何设备的串口驱动,例如.原创 2020-06-03 17:54:07 · 1035 阅读 · 0 评论 -
【使用笔记】树莓派基于Python操作IIC接口的红外测温传感器
最近在使用红外测温传感器,IIC通信,在单片机上已能读取数据,但是想把数据读取到电脑上用python做一些处理,想到树莓派自带IIC接口,于是尝试直接将红外传感器接到树莓派的IIC管脚。启用树莓派I2C功能:参考瑞士军刀扩展板的教程“DS1307 RTC 时钟模块”,开启树莓派的IIC功能,教程链接:http://shumeipai.nxez.com/2016/05/30/saks-diy...原创 2019-10-31 23:48:16 · 7856 阅读 · 0 评论