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
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.
Since microbit-dal version 1.4.7, dependencies are now listed with the
microbit-dal module.json. This enables consistent versioning of sub
dependencies.
ARM mbed have extracted the Nordic SDK from their BLE libraries, but dependencies still exist...
Maintaining a local branch here to provide the opportunity for tailoring to reduce RAM overhead.
Previously the default target in .yotta.json was targetting
a namespace that did exist originally, but no longer does.
The default target is now bbc-microbit-classic-armcc.
This is a version of the SB2 repo, entirely comprised
of yotta modules.
This repo also includes a microbit-compatible microbit
target (see yotta_targets).