Raspberry BASIC

Author Topic: WiringPi  (Read 3116 times)

John Spikowski

  • BASIC Developer
  • ***
  • Posts: 234
    • View Profile
    • ScriptBasic
WiringPi
« on: January 01, 2021, 09:22:16 AM »
It seems that WiringPi doesn't work with the RPi 4b 8GB.

Code: [Select]
ubuntu@rpi4b:~$ sudo gpio readall
Oops - unable to determine board type... model: 17
ubuntu@rpi4b:~$
ScriptBasic Project Manager/Facilitator

John Spikowski

  • BASIC Developer
  • ***
  • Posts: 234
    • View Profile
    • ScriptBasic
Re: WiringPi
« Reply #1 on: January 01, 2021, 10:52:38 AM »
Quote from: Gordon@RPi
Just a quick post to let you know that you?ll need a new wiringPi for the Raspberry Pi 4B.

To upgrade:

cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb

Check with:

gpio -v

and make sure it?s version 2.52. I?ll push the updated sources shortly.

It will hopefully be part of the official release soon, but for now this will do.

-Gordon
« Last Edit: January 05, 2021, 08:21:20 AM by John Spikowski »
ScriptBasic Project Manager/Facilitator

John Spikowski

  • BASIC Developer
  • ***
  • Posts: 234
    • View Profile
    • ScriptBasic
Re: WiringPi
« Reply #2 on: January 05, 2021, 08:22:51 AM »
Unfortunately for me this update is for the 32 bit RPi OS.  :-\


ubuntu@rpi4b:~$ sudo dpkg -i wiringpi-latest.deb
dpkg: error processing archive wiringpi-latest.deb (--install):
 package architecture (armhf) does not match system (arm64)
Errors were encountered while processing:
 wiringpi-latest.deb
ubuntu@rpi4b:~$

ScriptBasic Project Manager/Facilitator

John Spikowski

  • BASIC Developer
  • ***
  • Posts: 234
    • View Profile
    • ScriptBasic
Re: WiringPi
« Reply #3 on: January 08, 2021, 12:34:29 AM »
After contacting Godon about my 64 bit WiringPi issue there doesn't seem to be a path to a solution. I have no interest developing for 32 bits under Linux any more so I'm going cease support for the ScriptBasic WiringPi extension module.

I hope to find a replacement in the future.

« Last Edit: January 08, 2021, 04:20:51 AM by John Spikowski »
ScriptBasic Project Manager/Facilitator

John Spikowski

  • BASIC Developer
  • ***
  • Posts: 234
    • View Profile
    • ScriptBasic
Re: WiringPi
« Reply #4 on: January 12, 2021, 07:07:19 AM »
I think I may have found a replacement for WiringPi. I'm not sure if it will compile on 64 bit OSs but sounds promising. I'll update this thread when I have time to give it a try.

lg library

ScriptBasic Project Manager/Facilitator