digitalRead not working
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 494
- Forks
- 472
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with grove_button.py and reproduce the digitalRead behavior on the stated Raspberry Pi 3B and GrovePi+ setup, testing both pressed and released states. Trace where the released-button path stops responding; done means digitalRead handles both states without hanging while digitalWrite continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100