^

Themabewertung:
  • 98 Bewertung(en) - 2.56 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
LCN PCHK und Raspberry Debian Bullseye
#5
Ich habe nach dieser Anleitung die fehlende Library "WiringPi" installiert:


Install Wiring Pi
Note: Wiring Pi is now pre-installed with standard Raspbian systems. The instructions from the official WiringPi homepage are now depreciated. The original wiringPi source "git://git.drogon.net/wiringPi" is not available.
Wiring Pi is previously not included with early versions of Raspbian. This required users to download and install it. Luckily, Wiring Pi is included in standard Raspbian systems. If you are looking to update using a mirrored Wiring Pi with small updates to support newer hardware, we recommend checking out this GitHub repository.

You'll need git (may be installed by default). If git is not installed, enter the following into the command line.

sudo apt-get install git-core
We highly recommend using Git to download the latest version. To check what version you have, enter the following command.

gpio -v
If you receive an output similar to to the following with the Unknown17, you'll want to update WiringPi on a Raspberry Pi 4 or above.

gpio version: 2.50
Copyright © 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
Type: Unknown17, Revision: 02, Memory: 0MB, Maker: Sony
* Device tree is enabled.
* --> Raspberry Pi 4 Model B Rev 1.2
* This Raspberry Pi supports user-level GPIO access.
Enter the following to remove the wiringPi and configuration files.

sudo apt-get purge wiringpi
Then type the following for the Pi to remove all locations that remember wiringPi.

hash -r
As long as you have Git installed, these commands should be all you need to download and install Wiring Pi.

git clone https://github.com/WiringPi/WiringPi.git
This will make a folder in your current directory called WiringPi. Head to the Wiring Pi directory.

cd WiringPi
Then pull the latest changes from the origin.

git pull origin
Then enter the following command. The ./build is a script to build Wiring Pi from the source files. This builds the helper files, modifies some paths in Linux and gets WiringPi ready to rock.

./build
At this point, the library should work. Run the gpio command shown below to view some information about the wiringPi version and the Pi that it is running on.

gpio -v
Entering the following command will draw a table illustrating the configuration for the pins in the 40-pin connector.

gpio readall
Zitieren


Nachrichten in diesem Thema
RE: LCN PCHK und Raspberry Debian Bullseye - von Ojoachim - 10.10.2022, 07:13

Gehe zu: