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

    coolpi 4b python3 gpio operation compatable with raspberry pi

    Scheduled Pinned Locked Moved Pi 4B
    30 Posts 11 Posters 3.2k 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.
    • A
      AugustRobot_Zou @大法师
      last edited by AugustRobot_Zou

      @大法师
      请问能麻烦编译一个python3.6.9的安装包吗?
      使用CPi.GPIO-1.0.0-cp38-cp38-linux_aarch64.whl,必须装上python3.8。
      我的docker环境是ubuntu18.04+python3.6.9+ROS。

      装了python3.8后,同时存在python3.8和python3.6,导致原本的代码程序很多python版本适配问题,这几天为这个问题搞得头大,很难兼顾 CPi.GPIO库和原来的程序,模块脚本的#!/usr/bin/python3 只能配置2选1(3.8 or 3.6 )。

      80fa368b-5533-4b1d-b029-60c55cbe2106-图片.png

      大法师大 J 2 Replies Last reply Reply Quote 0
      • 大法师大
        大法师 @AugustRobot_Zou
        last edited by

        @AugustRobot_Zou okay!

        jack@cool-pi.com

        1 Reply Last reply Reply Quote 0
        • J
          jack_admin @AugustRobot_Zou
          last edited by

          @AugustRobot_Zou CPi.GPIO-1.0.0-cp36-cp36m-linux_aarch64.whl

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

            @jack_admin @大法师
            Really appreciate your help!
            Now our system is basically compatible with coolp4B,which used to running on raspberry-pi4B.

            1 Reply Last reply Reply Quote 0
            • A AugustRobot_Zou referenced this topic on
            • J jack_admin referenced this topic on
            • X
              xingzhan2012
              last edited by xingzhan2012

              有python3.9版本的吗

              J 1 Reply Last reply Reply Quote 0
              • J
                jack_admin @xingzhan2012
                last edited by

                @xingzhan2012 有。在帖子最顶楼

                X 1 Reply Last reply Reply Quote 0
                • X
                  xingzhan2012 @jack_admin
                  last edited by

                  @jack_admin 谢谢

                  1 Reply Last reply Reply Quote 0
                  • M
                    Macs
                    last edited by Macs

                    Does the coolpi have a DPI mode for the gpio like the RPI4?

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jack_admin @Macs
                      last edited by

                      @Macs said in coolpi 4b python3 gpio operation compatable with raspberry pi:

                      Does the coolpi have a DPI mode for the gpio like the RPI4?

                      WiringPi ?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Macs @jack_admin
                        last edited by

                        @jack_admin I mean can output video signal on the gpio using with custom timings, like you can on the RPI4?

                        1 Reply Last reply Reply Quote 0
                        • O
                          Orion
                          last edited by

                          请问支持C++语言吗

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jack_admin @Orion
                            last edited by

                            @Orion C++可以代码文件操作gpio,不需要调用python库

                            O 1 Reply Last reply Reply Quote 0
                            • O
                              Orion @jack_admin
                              last edited by

                              @jack_admin 请问C++需要包含哪个库呢,是writtingPi吗

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                jack_admin @Orion
                                last edited by

                                @Orion 直接裸操作/sys/class/gpio,不做二次包装

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  zensation
                                  last edited by

                                  it says in the GPIO page that all gpio are configurable with pullup or pulldown mode. How can we access the pull down resistor on a input pin say pin 32 GPIO105 that is default set to pullup? I tried the same convention as raspberry pi python access which is

                                  GPIO.setup([pin#], GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

                                  and i get the error no PUD_DOWN in the module. Can you post the entire documentation with included commands in this module?

                                  大法师大 1 Reply Last reply Reply Quote 0
                                  • 大法师大
                                    大法师 @zensation
                                    last edited by

                                    @zensation not support setting pullup/down in user space now.

                                    jack@cool-pi.com

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      weiweiwei @大法师
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • 1
                                      • 2
                                      • 2 / 2
                                      • First post
                                        Last post