LCD1602 Raspberry PI的Python3绑定。 硬件设定 将引脚连接到rPI: LCD1602 Raspberry PI GND --- to ----> GND VCC --- to ----> 5V SDA --- to ----> GPIO2 SCL --- to ----> GPIO3 软体设定 启用Raspberry PI的GPIO引脚: sudo usermod -a -G gpio your_username 在raspi-config中启用I2C: sudo raspi-config # Interface Options > I2C > Enable(Yes) 设置外壳程序别名: # LCD1602/ source alias.sh # Aliases set to path /home/pi/LCD1602/s