02-28-2022 11:03 AM
In the documentation (bst-bhi260ap-ds000.pdf) it says that Acceleration Range is selectable via the serial digital interface - how would i do that on the Nicla Sense ME? Need to change it but have not found a solution after searching a lot - can somebody help me?
Solved! Go to Solution.
03-01-2022 03:52 AM
Hello uphon,
In bhi2.c file, bhy2_set_virt_sensor_range() function support to set sensor range.
int8_t bhy2_set_virt_sensor_range(uint8_t sensor_id, uint16_t range, struct bhy2_dev *dev)
To set sensor range, you could call bhy2_set_virt_sensor_range() in begin().
BoschSensortec.cpp
bool BoschSensortec::begin()
{
...
bhy2_set_virt_sensor_range();
...
}
04-16-2022 04:49 PM
I was also looking solutions for BHY2.h library but find nothing
09-16-2022 07:50 AM
Hello,
there is a new example for showing how to get and set the range for the accelerometer on Nicla, please refer to the PR here:
09-16-2022 06:06 PM
Thank you!