rust_gpiozero
rust_gpiozero copied to clipboard
A library inspired by gpiozero written in Rust
Hi I wanted to ask some questions: > This library is based on [GPIOZero](https://gpiozero.readthedocs.io/en/stable/index.html) library. This is from the README.md. So like is this crate using `gpiozero` as the backend...
In order to achieve "write once run everywhere", I wanted to suggest support for the Arduino.
I could use some help maintaining or adding features to rust_gpiozero. It is intended to be a port of the python-based [gpiozero](https://gpiozero.readthedocs.io/en/stable/) library. I would be grateful for any kind...
I've tested this python code on my servo: https://gpiozero.readthedocs.io/en/stable/api_output.html?highlight=servo#servo ```python from gpiozero import Servo from time import sleep servo = Servo(11) while True: servo.min() sleep(1) servo.mid() sleep(1) servo.max() sleep(1) ```...
Implemented set_position function for servo, using same style as origin gpiozero. Tested on raspberry pi3.
I am using rust_gpiozero v0.2.1 with an Raspberry Pi 4B and found a situation where the library isn't responding to interrupts. I'm not a 100% sure that it is a...
The Python library allows both those parameters to be set on creation of a new OutputDevice. It appears that these values currently are hard-coded to active_state true (high) and inactive_state...
``` /// Set the servo's maximum pulse width pub fn set_max_pulse_width(&mut self, value: u64) { if value >= self.frame_width { ``` The default frame_width is set to 20, while the...
https://gpiozero.readthedocs.io/en/stable/api_spi.html#analoginputdevice Depends on #12
Is there a way to expose a polling mechanism as opposed to the blocking process you have right now? Related to this post: https://stackoverflow.com/questions/62376239/rust-tokio-infinite-loop-for-multiple-buttons-listening