WiringPi
DISCONTINUED
gpiozero
Our great sponsors
WiringPi | gpiozero | |
---|---|---|
7 | 7 | |
2,259 | 1,809 | |
- | 1.3% | |
3.6 | 8.0 | |
5 months ago | 19 days ago | |
C | Python | |
GNU Lesser General Public License v3.0 only | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
WiringPi
-
Embedded / RaspberryPi: Reading GPIO: is `libgpiod` better then `WiringPi`?
So I have a C program running on my Raspberry Pi that reads GPIO pins indefinitely. I used WiringPi to write it, and I notice it uses 20%-30% of CPU. I tried both with and without interrupts. Here are links to two implementations:
-
Is PWM not working correctly in wiringPi? Also, given how it is deprecated, what's the best replacement C/C++ library?
WiringPi was deprecated by its author after he was flooded with support requests from non-Raspberry Pi users. There is a community-maintained fork: WiringPi/WiringPi: Gordon's Arduino wiring-like WiringPi Library for the Raspberry Pi (Unofficial Mirror for WiringPi bindings) for recent hardware. How long it'll stick around, I don't know.
Yes. There is a community fork of wiringPi which supports newer hardware. No new features.
-
GPIO Programming on the Raspberry Pi: Python Libraries
The WiringPi library is an often used, functional rich library that supports I2C and SPI connections. It is written in C and provides Python bindings. The library is unfortunately deprecated as the original author stated. Decide yourself if you want to use the library: On one hand, you find several examples on the internet, on the other hand, members from the Raspberry Pi community start to move to new libraries.
gpiozero
-
Raspberry Pi, InfluxDB, Grafana, Docker
It was a bit tricky to get CPU temperature of a host machine (Raspberry Pi) from within the running docker container. This Issue on GitHub has helped me :
- Arduino/ESP32 project --> Raspberry Pi 4 programming/conversion/capability?
-
What can we do with python, exactly?
No. The pi 4 is not a microcontroller. However, I would recommend gpiozero for a regular pi4
-
mqtt-gpio: A service which connects MQTT topics to Raspberry Pi GPIO pins
I run it in K3s on Raspberry Pi OS. The service is built on gpiozero so should work on other devices. It is a very helpful building block in my DIY home automation system. It's a general purpose connector so it can be configured for many different uses. At present I use it to:
- Ask HN: Good Python projects to read for modern Python?
-
GPIO Programming on the Raspberry Pi: Python Libraries
Gpiozero is already installed in the current Raspberry Pi OS - if not, just run python3 -m pip gpiozero. The source code files can be accessed on Github. The official documentation on readthedocs.io provides rich information and plenty example code.
What are some alternatives?
pigpio - pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
tkgpio - A Python library to simulate electronic devices connected to the GPIO on a Raspberry Pi, using TkInter.
WiringPi-Python - Unofficial Python-wrapped version of Gordon Henderson's WiringPi version 2.
pi-mqtt-gpio - Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
w1thermsensor - A Python package and CLI tool to work with w1 temperature sensors like DS1822, DS18S20 & DS18B20 on the Raspberry Pi, Beagle Bone and other devices.
systemd-gpio - A systemd unit template that does things when gpio events happen.
OctoPrint-Enclosure - OctoPrint Enclosure Plugin
noisy - Simple random DNS, HTTP/S internet traffic noise generator
ConsolePi - Raspberry Pi Based Serial Console Server, with PushBullet Notification of IP changes, Automatic VPN termination, custom menu, Power Outlet Control, and a lot more
background-radiation-monitor - Monitor and record background radiation levels with a cheap detector and a Raspberry Pi.