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

    关于 Cpi.GPIO调用问题 python3.9 coolpi ubuntu20.04

    Scheduled Pinned Locked Moved Peripheral
    3 Posts 2 Posters 354 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.
    • B
      bg8wj
      last edited by bg8wj

      执行程序CPi.GPIO 不论是 borad 还是RK
      #GPIO.setmode(GPIO.BOARD)
      Gpio.setmode(GPIO.RK)
      之后执行这个语句
      GPIO.setup(32, GPIO.OUT,initial=GPIO.LOW)
      后 出现这个提示
      SystemError: more argument specifiers than keyword list entries (remaining format:'i')
      求指导。

      A 1 Reply Last reply Reply Quote 0
      • A
        AugustRobot_Zou @bg8wj
        last edited by AugustRobot_Zou

        @bg8wj 看报错提示啊,不是很清楚了。输入参数过多。
        改成GPIO.setup(32, GPIO.OUT)试试

        https://www.cool-pi.com/topic/136/coolpi-4b-python3-gpio-operation-compatable-with-raspberry-pi/17

        B 1 Reply Last reply Reply Quote 0
        • B
          bg8wj @AugustRobot_Zou
          last edited by

          @AugustRobot_Zou x谢谢,果然是如此。修改后两个语句初始化。可以用了。

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