-
Notifications
You must be signed in to change notification settings - Fork 7
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
Shake event not working on micro:bit v1.3? #11
Comments
There shoudn't be a reason that doesn't work, is using DAL and when this was released micro:bit v1.3 and v1.5 were both fully supported. |
Yes a normal MakeCode project with 'on shake' works fine on the same board. It would be useful if someone else could test AppLab with a 1.3 board to see if they can reproduce the issue. There are details on how to use in in the edu team Dropbox: 04. Education/Partners/Code.org/tech/ My board details.txt file in case it's any help:
|
@microbit-giles it's been a while but do you know if this issue is still present? |
@microbit-carlos No idea I'm afraid - not had chance to look at this in a long time. |
@microbit-carlos I did a quick test with microbit-firmata-v1.1.hex, and mbTests.js. My impression was that 1.3, 1.5 and 2.0 all behaved about the same. 1.3 with microbit-firmata-v1.0.hex felt similar. It seemed that not every shake caused the shake counter to increment. There were perhaps some 1.3/1.5 differences in the number of times I saw 3G, and I noticed "undefined" events with 2.0. By contrast, with a MakeCode program that counts shakes in "on shake", and displays the count in forever, it seemed easier to generate a shake, and felt more like it counted every shake. |
Thanks for the testing Martin, that's very interesting. I assume the "on shake" MakeCode block is subscribing to the shake event that CODAL triggers, which I think this project does as well, not sure why the results would be different. Either way, it sounds like the difference is not too significant, so we can probably park this and return to it if we find the difference to be more pronounced. |
In testing the development code.org AppLab app, I can't get 'on shake' events to work on a v1.3 micro:bit (with separate compass and accelerometer chips) but they do work on a 1.5 board (combined single compass and accelerometer).
Is there something in Firmata that could explain this and be fixed?
The text was updated successfully, but these errors were encountered: