Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button B pin11 digital read always returns 0 #136

Closed
microbit-carlos opened this issue Sep 30, 2022 · 1 comment
Closed

Button B pin11 digital read always returns 0 #136

microbit-carlos opened this issue Sep 30, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@microbit-carlos
Copy link
Contributor

Button B is pin 11, when pin11.read_digital() is executed, it always returns 0.

For a simple replicator, you can see how pressing button A changes pin5 value, but pin11 is always low:

from microbit import *

while True:
    print(pin5.read_digital(), pin11.read_digital())
    sleep(150)

This works fine on a V1.

@microbit-carlos microbit-carlos added this to the 2.2 milestone Oct 17, 2022
@microbit-carlos microbit-carlos added the bug Something isn't working label Oct 19, 2022
@microbit-carlos microbit-carlos modified the milestones: 2.2, 2.1.1 Oct 19, 2022
dpgeorge added a commit that referenced this issue Oct 24, 2022
Fixes issue #136.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge
Copy link
Collaborator

pin11 was accidentally defined to be pin 12. Fixed by 1955adb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants