首先需要树莓派3B的gpio定义图 注:GPIO21靠近以太网口端。 开启串口 raspi-config Advanced Options 保存并重启,就可以使用串口了。 转载于:https://www.cnblogs.com/sherlock-merlin/p/6138931.html