📜  使用树莓派外壳在 mcp23017 上设置引脚 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:40.239000             🧑  作者: Mango

代码示例1
# for original rev1 Pi
sudo i2cset -y 0 0x20 0x00 0xff
sudo i2cset -y 0 0x20 0x14 0x01
#           address register value 
# for rev2 Pi or later
sudo i2cset -y 1 0x20 0x00 0xff
sudo i2cset -y 1 0x20 0x14 0x01
#           address register value