• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    Coolpi 4b gpio default setting introduce

    Scheduled Pinned Locked Moved Pi 4B
    1 Posts 1 Posters 306 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 大法师大
      大法师
      last edited by 大法师

      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

      33e8f15f-4873-40b9-b72d-565a7939aa34-110d40fc1c675dc16529c2212427a4e.png

      系统中若无该命令,请将附件文件拷贝到/usr/sbin/,再执行chmod a+x /usr/sbin/gpio_coolpi

      gpio_coolpi

      jack@cool-pi.com

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post