Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
1 year, 5 months ago.
The accelerometer code cannot be executed on the microbit hardware version 1.5.
The accelerometer program can work normally in the microbit 1.3B version, but there is no response on the microbit V1.5. How can I solve this?
The following APIs are not working properly: uBit.accelerometer.getX(); uBit.accelerometer.getY(); uBit.messageBus.listen(MICROBIT_ID_ACCELEROMETER, MICROBIT_ACCELEROMETER_EVT_DATA_UPDATE, onAccDataUpdate); uBit.messageBus.listen(MICROBIT_ID_GESTURE, MICROBIT_ACCELEROMETER_EVT_SHAKE, onGesture);
Question relating to:
1 year, 2 months ago.
Does the mbed OS Device Abstraction Layer (DAL) hide the differences between the v1.5 ST Micro accelerometers and the earlier NXP accelerometers (MMA8653) ? SHould newly developed code probe to see which accelerometer is installed and then provide code for both accelerometers ?
1 year, 3 months ago.
"The v1.5 micro:bit has a footprint for two different motion sensors: one made by ST (the LSM303AGR) and one by NXP (FXOS8700CQ). The micro:bit DAL supports both of these sensors, detecting them at runtime. To date, all v1.5 boards have been manufactured with the LSM303AGR."
Try this : https://os.mbed.com/teams/ST/code/LSM303AGR/
10 months, 2 weeks ago.
the issue at hand here is the library in the mbed IDE has not been updated.
the current version is from 2016, when there has been two updates since then, one of them specific to changing the support for the new hardware (as the accelerometer has changed).