MrYsLab / s2m

Scratch to micro:bit bridge.
https://mryslab.github.io/s2m/
GNU Affero General Public License v3.0
35 stars 19 forks source link

digital write #17

Closed Frankliuchang closed 6 years ago

Frankliuchang commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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.