04 2023 档案

摘要:整理了自己在安装过程中碰到的四种npm ERR及解决方式 错误一、npm ERR! A complete log of this run can be found in:npm ERR!C:\Users\nanyi\AppData\Roaming\npm-cache_logs\2021-09-17T 阅读全文
posted @ 2023-04-09 11:11 一颗吃不完的糖 阅读(6997) 评论(1) 推荐(0) 编辑
摘要:出现类似问题,是这个字节超出了utf-8的表示范围,出现了解码错误 解决方案:设置encoding = 'ISO-8859-1' 串口: data_count = data_ser.inWaiting()# print(data_count)if data_count != 0: recv = da 阅读全文
posted @ 2023-04-04 10:55 一颗吃不完的糖 阅读(2099) 评论(0) 推荐(0) 编辑
摘要:python 串口读取数据 # TODO 串口读取数据 # Auther wjw import serial # 导入串口包 import time # 导入时间包 ser = serial.Serial("COM3",115200,timeout = 5) # 开启com3口,波特率115200, 阅读全文
posted @ 2023-04-04 10:07 一颗吃不完的糖 阅读(269) 评论(0) 推荐(0) 编辑
摘要:1、安装serial库pip install pyserial2、代码 import serialimport binascii, time# 配置串口基本参数并建立通信ser = serial.Serial( port='/dev/ttyAMA0', baudrate=115200, parity 阅读全文
posted @ 2023-04-04 10:06 一颗吃不完的糖 阅读(1345) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示