pigpio
gpiozero
Our great sponsors
pigpio | gpiozero | |
---|---|---|
6 | 7 | |
1,383 | 1,809 | |
- | 1.3% | |
0.0 | 8.0 | |
4 months ago | 19 days ago | |
C | Python | |
The Unlicense | 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.
pigpio
-
Using RPi GPIO from within ROS2 node (Ubuntu 20.04.4)
pigpio: Here is the repo, but the "abyz" link to the documentation looks to be broken. Not sure how to go about getting the daemon to work - I tried sudo pigpiod as the prompt in Python suggests, but sudo: pigpiod: command not found.
-
GPIO Programming on the Raspberry Pi: Python Libraries
The pigpio is an actively developed library with an impressive set of features: All GPIO pins of the Raspberry Pi can be read, written to, attached to interrupt handlers, and output PWM signals at the same time. Also, UART, I2C and SPI protocols are implemented. It is written in C and also provides Python bindings. Go to the official Github repository and build the newest version on your Raspberry Pi, or install it with apt install pigpio python-pigpio python3-pigpio.
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?
WiringPi - Gordon's Arduino wiring-like WiringPi Library for the Raspberry Pi (Unofficial Mirror for WiringPi bindings)
tkgpio - A Python library to simulate electronic devices connected to the GPIO on a Raspberry Pi, using TkInter.
spi-device - SPI serial bus access with Node.js
onoff - GPIO access and interrupt detection with Node.js
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
i2c-bus - I2C serial bus access with Node.js