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

digital write #17

Closed
Frankliuchang opened this issue Mar 24, 2018 · 2 comments
Closed

digital write #17

Frankliuchang opened this issue Mar 24, 2018 · 2 comments

Comments

@Frankliuchang
Copy link

I want to turn on an led, but when I click the "Digital Write pin (0) value(0)"command, the led just flash and then turn off. I want to know if the led can be always on? Thanks a lot!

@MrYsLab
Copy link
Owner

MrYsLab commented Mar 24, 2018

@Frankliuchang I have confirmed this is a bug and am working on a fix. The LED should be able to stay on. When I have a fix ready, I will add another comment here.

@MrYsLab
Copy link
Owner

MrYsLab commented Mar 24, 2018

Thank you for letting me know about this bug. It should now be fixed in version 2.4. The only thing you will need to do is upload this file to the micro:bit. All of the other code remains the same.

Please note, that if you set a pin as a digital output pin, if you try to do a digital read of the pin, it will always return 0 until the micro:bit is reset.

If you have any questions or additional issues, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants