Replies: 1 comment 2 replies
-
On the micro:bit v2, the accel/magn sensors share the same interrupt line. P0.25 is the COMBINED_SENSOR_INT, see https://tech.microbit.org/hardware/schematic/ I have a micro:bit v2 and will try out the sample. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
lis2dh_output.txt
Describe the bug
Error while building the example lis2dh, it works for bbc_microbit but not for bbc_microbit_v2.
I have tried to find the issue, but I have no luck, one thing which might cause some problems is that the
sm303agr-magn@1e
andlsm303agr-accel@19
from thebbc_microbit_v2.dts
file are on the same GPIO pin.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Bbc_microbit (v1.5 and v2) share the same accelerometer lsm303agr it is expected for the same code to work, or a solution to access the accelerometer for v2.
Impact
Not able to progress on my FYP (Final year project) because I can not access the accelerometer information.
Logs and console output
There are 300 lines, I have attached the file lis2dh_output.txt for the full output.
Environment (please complete the following information):
Additional context
The bbc_microbit (v1.5) has the Cortex-M0 processor while v2 has the Cortex-M4 processor, I am not sure if that should make any difference in the ability to use the example lis2dh.
Beta Was this translation helpful? Give feedback.
All reactions