Ben Nuttall

Results 347 comments of Ben Nuttall

python3-libgpiod exists in Debian Buster: https://packages.debian.org/buster/python3-libgpiod but is it in Raspbian?

I guess it's more that the `RPi.GPIO` clone doesn't support I2C yet, but gpiozero expects to be able to import the `I2C` constant. If you set the constant (it's 42),...

I presume gpiozero itself "works" on Fedora (there's no reason it wouldn't - it's pure Python). Try installing gpiozero with pip, setting `GPIOZERO_PIN_FACTORY=mock` and trying some GPIO code, which should...

I'm afraid it's not as easy as that. gpiozero provides the means to use different pin libraries underneath - but the implementation of a pin factory is required. See how...

I'd imagine the pin factories wouldn't need updating, but the libraries themselves will need updating. I guess the native pin factory would need updating (but that's not a library, it's...

This has been suggested before, though I don't see an issue for it. Not sure how easy it would be, with how gpiozero works with pins, and I'd fear it...

Do you mean `sample_rate` or `sample_wait`?

If you want you can write your own pin factory that interacts with the GPIO in that way. If you find it works well you can send us a PR...

Put into a class and automated classes dict: ```python import yaml import gpiozero from signal import pause classes = { name: cls for name, cls in gpiozero.__dict__.items() if isinstance(cls, type)...

Export to Python file: ```python class GPIOZeroYamlParser(): def __init__(self, config_file): with open(config_file, 'r') as f: self.config = yaml.load(f) self.devices = {} self.device_data = {} self.classes = set() for device in...