HeckerBirb / rpi-radiationd-v1.1

RadiationD v1.1 Python POC for Raspberry-Pi 5
GNU General Public License v3.0
0 stars 0 forks source link

rasberry pi5 #1

Open zatomaks opened 1 month ago

zatomaks commented 1 month ago

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.

HeckerBirb commented 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.

ruslansenatorov commented 1 month ago

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