You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I monitor my gpio with watch -n 1 raspi-gpio get 4
Before I start the program everything works fine, but after I start my program the gpio pin starts fluctuating and I receive a is_high unnecessarily, so this projects plays sounds on and on and not only after short-circuiting V3.3 with GPIO4.
After reattaching from power supply the PIN behaves as expected again.
The text was updated successfully, but these errors were encountered:
If you're not using a pullup or pulldown resistor, your input pin is likely floating and returning seemingly random results. I suggest enabling the Raspberry Pi's built-in pulldown resistor by changing into_input() into into_input_pulldown() and see if that helps resolve the issue.
Sorry for asking this question here, but I don't see any reason, why this happens.
Maybe it is an electronic issue.
Please help.
I have this programm here: https://github.com/rusticus-io/sound-player/blob/main/src/main.rs
I monitor my gpio with watch -n 1 raspi-gpio get 4
Before I start the program everything works fine, but after I start my program the gpio pin starts fluctuating and I receive a is_high unnecessarily, so this projects plays sounds on and on and not only after short-circuiting V3.3 with GPIO4.
After reattaching from power supply the PIN behaves as expected again.
The text was updated successfully, but these errors were encountered: