-
Notifications
You must be signed in to change notification settings - Fork 131
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
Animate function does not work with negative stride #351
Comments
Just to clarify @microbit-mark, when this code is run on a micro:bit nothing is displayed in the LED matrix, is that correct? |
Yep. nothing is displayed on the micro:bit. Using |
Thanks @microbit-mark and @carlosperate Based on a quick scan of the code, it looks like you currently need to specify an explicit starting position if you want negative scrolling: https://github.com/lancaster-university/microbit-dal/blob/master/source/drivers/MicroBitDisplay.cpp#L934 Can you try your code again with the optional fourth parameter set, as indicated here: I guess it will be roughly |
I've tried variations on |
@finneyj anything else I can try? |
Assigning to @microbit-sam as a BAU DAL activity |
Had another request in support for this, so polling the issue. |
micro:bit support: 20935 |
I think I have fixed this. I'll make a PR. |
micro:bit support: 38373 |
Raised again in microbit support: 42107 |
Raised in microbit support: 44708 Also reproduces on V2. @martinwork does your PR #427 still apply for both board variants? This would be a good one to progress as it crops up every so often. |
@microbit-mark V2 and V1 look the same with negative stride, using the test below, so hopefully the changes needed in CODAL would be similar. Would you like a PR like this for the DAL js-event-semantics branch and one for CODAL?
|
Raised again in micro:bit support: 46440
It would be great to fix this for all board variants . I'll leave the prioritisation with you and @finneyj as to where and when. |
DAL js-event-semantics branch: #485 |
When stride argument for the animatemethod has a neagtive value the micro:bit does nothing. We would expect it to animate in the opposite direction.
eg
The text was updated successfully, but these errors were encountered: