Commit graph

16 commits

Author SHA1 Message Date
Sam Kent
011cb1ac07 Remove int1,2,3 2018-11-22 13:59:48 +00:00
Joe Finney
d54e26fd4d Prevent auto-compass calibration when a compass event listener is registered
- Calibraiton algorithm now only activated when heading() is requested
2018-09-08 18:07:41 +01:00
Joe Finney
e0b5759fa4 Remove DEBUG diagnostics 2018-09-07 14:39:49 +01:00
Joe Finney
36fd2895b7 Remove legacy condition CONFIG options and add diagnostics 2018-09-06 20:53:53 +01:00
Joe Finney
4029770eae First compiling buid of integrated heap allocator 2018-09-06 16:04:06 +01:00
Sam Kent
b5500c8f91 BLEMode -> RebootMode 2018-08-01 14:30:39 +01:00
Joe Finney
70f0ca072c Merge branch 'master' of https://github.com/microbit-sam/microbit into partial-flashing 2018-07-06 17:30:24 +01:00
Joe Finney
ce4c078a42 Updates to support alternative accelerometer and magnetomter sensors
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
2018-07-06 16:27:34 +01:00
Sam Kent
42cba850c8 Removed module.json edit. Delte KV Pairs. 2018-05-25 11:58:28 +01:00
Sam Kent
a6ab0e6c1b
Added Partial Flashing (#1)
* 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
2018-05-04 14:46:40 +01:00
Joe Finney
c5889e4c72 microbit: BUGFIX Wake accelerometer on listen for GESTURE events
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.
2016-04-08 16:10:46 +01:00
James Devine
0dcd81b24b microbit: added MIT license information. 2016-04-06 16:47:41 +01:00
James Devine
213961fd43 microbit-samples: updates to doxygen style comments for MicroBit[.h,.cpp] 2016-04-05 17:59:57 +01:00
Joe Finney
81a3f9c984 microbit: Automatic defining of SERIAL_DEBUG symbol
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.
2016-03-26 17:11:35 +00:00
Joe Finney
7a0c5bfdd3 microbit: Updated parameter type in scheduler_init() to match API. 2016-03-24 23:32:04 +00:00
Joe Finney
b12ff223d1 microbit: Refactored MicroBit C/C++ personality into this repo 2016-03-24 14:38:04 +00:00