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

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

Peripheral
2
3
382
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 Feb 8, 2023, 8:20 AM Feb 8, 2023, 8:19 AM

    执行程序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 Mar 10, 2023, 2:37 AM Reply Quote 0
    • topic:timeago_later,30 days
    • A
      AugustRobot_Zou @bg8wj last edited by AugustRobot_Zou Mar 10, 2023, 2:39 AM Mar 10, 2023, 2:37 AM

      @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 Mar 14, 2023, 5:27 AM Reply Quote 0
      • B
        bg8wj @AugustRobot_Zou last edited by Mar 14, 2023, 5:27 AM

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

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 out of 3
        • First post
          1/3
          Last post