GrovePi
GrovePi copied to clipboard
digitalRead not working
Hi,
The python program grove_button.py gets stuck if there is digitalRead. It prints 255 when the button is pressed down, but hangs when the button is released. digitalWrite is working fine. What could be the issue here?
Setup:
- Hardware: Raspberrypi 3B and GrovePi+
- Software: 2019.04.05_Raspbian_For_Robots_by_Dexter_Industries_Stretch (updated), Python 2.7 & 3.5
Solved. Updated the firmware first and then the libraries.