Open zatomaks opened 1 month ago
Hi, if you follow the guide in the README file, you should be good to go. You need to install a different library for r-pi 5 support.
Hello, do you know how to correctly adapt your code for rasberry pi 5, which has problems using the RPi.GPIO library? I tried to use the gpiozero and lgpio libraries to rewrite similar code for reading pulses from the Geiger sensor, but my attempts were unsuccessful because I did not find an analogue of the "GPIO.add_event_detect" function or I used them incorrectly, but I can't get an output signal.
why are you ignoring? You could have written that . I don’t want to study anymore. Good luck.
from gpiozero import Button
sensor = Button(pin_number, pull_up=False)
def pulse_detected(): print("Pulse detected!")
sensor.when_pressed = pulse_detected
while True: pass
Hello, do you know how to correctly adapt your code for rasberry pi 5, which has problems using the RPi.GPIO library? I tried to use the gpiozero and lgpio libraries to rewrite similar code for reading pulses from the Geiger sensor, but my attempts were unsuccessful because I did not find an analogue of the "GPIO.add_event_detect" function or I used them incorrectly, but I can't get an output signal.