序言 舵机控制需要打开I2C端口,不然会出现一些no such file 的问题 如何打开I2C端口呢? 打开端口 sudo raspi-config 选择Interfacing Options 选择i2c 选择enable 完成 最后记得重启树莓派 sudo reboot