DexterInd / DexterInd/GrovePi

digitalRead not working

Open
#489 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.