Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 43
  1. #11

    Alternative to/successor of wiringpi?

    Thanks for the info about wiringpi, paul-.

    Do you know whether there is an alternative to wiringpi for C/C++ programming?

    Nevertheless, I will try to create the same task with Python.

  2. #12
    Senior Member
    Join Date
    Apr 2007
    Posts
    289
    With this sensor and code (setting aside wiringpi), does the brightness go dimmer or darker than what can be achieved by manually setting the screen brightness to 0, which is bright enough for me during the day and too bright for nighttime?

    I would love to have a way to make my screen even dimmer. Until I do, my RPi 4 with its 7 inch touchscreen is stuck in the living room and cannot come into the bedroom.

  3. #13
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,048
    Quote Originally Posted by jd68 View Post
    Thanks for the info about wiringpi, paul-.

    Do you know whether there is an alternative to wiringpi for C/C++ programming?

    Nevertheless, I will try to create the same task with Python.
    pigpio is what I'm using for GPIO now. It's a little less friendly to deal with, but works with all boards. We do have that extension for pCP.

    I still think python is the way to go for simple (Not fast communications)
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #14
    Senior Member
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    170
    Quote Originally Posted by paul- View Post
    pigpio is what I'm using for GPIO now. It's a little less friendly to deal with, but works with all boards. We do have that extension for pCP.

    I still think python is the way to go for simple (Not fast communications)
    Hello,

    I wanted to play around with pigpio and python. But pigpio doesn't seem to be available in python (import error). I installed the pigpio.tcz extension and the pigpio daemon is running. But there is no pigpio file in the /usr/local/lib/python2.7/dist-packages folder.
    What can be the problem?

    Best regards
    PiPlayer

  5. #15
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,048
    I did not build pigpio with python....

    Use RPi-GPIO-python3.6.tcz for general GPIO access and smbus-python3.6.tcz for i2c programming.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #16
    Senior Member
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    170
    Ok I understand. The problem is, I am using the PyLMS library and it is causing problems with Python 3.6. So I have to use Python 2.7. But the old RPi-GPIO.tcz extension for Python 2 is no longer available in PiCorePlayer 6. So I thought pigpio was an alternative.

  7. #17
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,048
    Quote Originally Posted by piPlayer View Post
    Ok I understand. The problem is, I am using the PyLMS library and it is causing problems with Python 3.6. So I have to use Python 2.7. But the old RPi-GPIO.tcz extension for Python 2 is no longer available in PiCorePlayer 6. So I thought pigpio was an alternative.
    You could manually build it with pip. But moving to python3 is going to be a must. python2 is end of life, It will not be supported at all in the next pCP release.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #18
    Senior Member
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    170
    Quote Originally Posted by paul- View Post
    ... But moving to python3 is going to be a must...
    Then I have to look around for an alternative to PyLMS.

    Best regards
    PiPlayer

  9. #19
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,048
    What are you trying to do.... We have alot of commands built in to the pcp command line tool.

    I also use squeezy still.....which is perl based. https://github.com/pssc/squeezy

    I like the older version, as it runs much faster https://code.google.com/archive/p/squeezy/downloads
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #20
    Senior Member
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    170
    Quote Originally Posted by paul- View Post
    What are you trying to do.... We have alot of commands built in to the pcp command line tool.

    I also use squeezy still.....which is perl based. https://github.com/pssc/squeezy

    I like the older version, as it runs much faster https://code.google.com/archive/p/squeezy/downloads
    I only need simple status messages such as play, pause, stop, volume, etc. to control status LEDs. Unfortunately I am very bad at programming. Therefore I used the finished PyLMS library.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •