Raspberry Pi 5 gpiozero
Posted: Mon Aug 05, 2024 5:19 pm
Hello Everyone,
I recently bought a Raspberry Pi 5, and I’m encountering an issue with the RPi.GPIO library not working due to hardware changes. Consequently, I need to use a library compatible with the new hardware, like gpiod or GPIOZERO. I was advised to use GPIOZERO as it is more beginner-friendly and offers features like PWM and built-in pull-up resistors.
However, when I tried to turn on an LED using the GPIOZERO library, I found that my code wasn’t outputting any voltage on the GPIO pin. I tested this with a multimeter and confirmed that no voltage was being output. On the other hand, when I used the gpiod library, it worked perfectly fine.
Does anyone know why I am encountering this issue with GPIOZERO and how I can fix it?
I recently bought a Raspberry Pi 5, and I’m encountering an issue with the RPi.GPIO library not working due to hardware changes. Consequently, I need to use a library compatible with the new hardware, like gpiod or GPIOZERO. I was advised to use GPIOZERO as it is more beginner-friendly and offers features like PWM and built-in pull-up resistors.
However, when I tried to turn on an LED using the GPIOZERO library, I found that my code wasn’t outputting any voltage on the GPIO pin. I tested this with a multimeter and confirmed that no voltage was being output. On the other hand, when I used the gpiod library, it worked perfectly fine.
Does anyone know why I am encountering this issue with GPIOZERO and how I can fix it?