树梅派 配置 pin8 pin10(Tx, Rx) 串口

树梅派串口配置记忆:

    1、关闭蓝牙: sudo systemctl disable hciuart

    2、开启串口功能:sudo raspi-config -> 5 Interfacing Options -> P6 Serial ->Enable

    3、恢复串口使用:在 /boot/config.txt 文件中添加 dtoverlay=pi3-miniuart-bt   

    6、关闭串口控制台:修改 /boot/cmdline.txt 内容为 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline ....

   7、安装串口测试工具: sudo apt-get install minicom

   8、配置串口: sudo minicom -s -> Serial port setup->A Serial Device: /dev/ttyAMA0 -> Save setup as df1

   9、更新并重启系统:sudo apt-get update   sudo apt-get upgrade sudo reboot now

转载于:https://www.cnblogs.com/btxz/p/9678806.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值