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

020 crash in MakeCode v2 and MakeCode beta (06.08.20) #3

Closed
RRWagner opened this issue Jun 8, 2020 · 2 comments
Closed

020 crash in MakeCode v2 and MakeCode beta (06.08.20) #3

RRWagner opened this issue Jun 8, 2020 · 2 comments

Comments

@RRWagner
Copy link

RRWagner commented Jun 8, 2020

This program crashes when the encoder is turned rapidly left or right.

https://makecode.microbit.org/_TqjJ4m2pV3Xc

image

@targetarchitecture
Copy link

targetarchitecture commented Aug 8, 2020

@RRWagner I think it's because you're trying to change display the LEDs using the events, if I put the LED parts into the main loop and just have the events set a variable it works.

https://makecode.microbit.org/_6P6gs49RjeLj

@RRWagner
Copy link
Author

Yes, that alternate code worked. Thank you!

But I don't understand why LED control can't be within an event handler. Is that documented somewhere? Are there other blocks that can't be inside event handlers?

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

3 participants