Minor updates to make use of new functionality in microbit-dal that performs
autodetection of attached sensors and instatiation of drivers. Also some code
cleanups to remove unused code.
More specifically:
- Changed MicroBitAccelerometer and MicroBitCompass objects to be references.
This is to support dynamic autodetection and instantiation of drivers for such hardware.
- Updates to initialise MicroBitAccelerometer and MicroBitCompass references
through the MicroBitAccelerometer::autoDetect() and MicroBitCompass::autoDetect() methods, respectively.
- Add storage object to MicroBitCompassCalibrator constructor to enable
persistent storing of calibration data.
- Updated use of accelerometer updateSample() to more commonly used getSample()
method to improve clarity and to provide a reference example.
- Exposed sensor IRQ lines via MicroBitIO.
- Removed redundant include of Matrix4.h
* Enter BLE mode using a MicroBitEvent
* Using Key/Value store rather than GPREGRET for Hard Reset persistance
* Skip timeout
* Updated tag
* Updated tag
* Updated tag
* Updated tag
* Removed Listener
* Updated animation
* Updated tag
* Updated tag
* Updated tag
* Updated tag
* Changed animation timing
* Updated tag
* Updated tag
* Updated tag
* Updated animation timing
* Added incomplete flash flag
* Updated tag
* Removed Event Listener from MicroBit.h
Previously, the accelerometer was only lazily initialised when it was
acccessed directly or an event handler was registered for
MICROBIT_ID_ACCELEROMETER. This patch also wakes the accelerometer on event
handlers registering for MICROBIT_ID_GESTURE.
Added support for automatic creation and assignment of the SERIAL_DEBUG symbol
when MICORBIT_DBG is enabled in MicroBitConfig.h
Also reordered the MicroBit constructor to bring up the serial object before
all other objects, to enable debugging of all code.