Closed microbit-sam closed 5 years ago
@finneyj do you have any thoughts on this approach before we go much further in testing it? Would be good to get this into a MakeCode testing release now v1 is out.
done.
@microbit-sam - I'm about to dive into a tunnel of teaching until about 2:00... Any chance you can do a few basic tests on master before i get back, then I can tag for you earlier this afternoon?
I've looked thorugh the commit log, and there's nothing much in there, but checking it compiles cleanly and your RADIO patches are good should do the trick, just to derisk things a bit?
Sure, no probs
Works for me! A tag for /beta would be great 😄
This PR delays the microbit_panic call to the
requestUpdate()
functionA MicroBitAccelerometer / MicroBitCompass object is created rather than a device specific object, this allows the device to fall back to the default
requestUpdate()
function which now callsmicrobit_panic()
This function is only called if the user program requests data from the acc / mag, or sets up a listener for an event on the devices. If the program does not use the devices, the object is created but won't trigger the
requestUpdate()
/microbit_panic()
I've currently only tested this with a C++ build
@finneyj