Coolpi 4b gpio default setting introduce
-
https://www.cool-pi.com/topic/136/coolpi-4b-gpio-with-python3
GPIO分布如下:
默认信号功能 引脚编号 引脚编号 默认信号功能 3.3V 1 2 5V /dev/i2c1 sda 3 4 5V /dev/i2c1 scl 5 6 GND gpio 47 7 8 Console txd 3.3V TTL GND 9 10 Console rxd 3.3V TTL gpio 128 11 12 gpio 39 gpio 129 13 14 GND gpio 130 15 16 /dev/ttyS2 uart txd 3.3V TTL 3.3V 17 18 /dev/ttyS2 uart rxd 3.3V TTL spi mosi 19 20 GND spi miso 21 22 gpio 40 spi clk 23 24 spi cs 0 GND 25 26 spi cs 1 /dev/i2c6 sda 27 28 /dev/i2c6 scl gpio 131 29 30 GND gpio 132 31 32 gpio 105 gpio 133 33 34 GND gpio 134 35 36 gpio 138 gpio 135 37 38 gpio 139 GND 39 40 gpio 115 系统中若无该命令,请将附件文件拷贝到/usr/sbin/,再执行chmod a+x /usr/sbin/gpio_coolpi