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?
Nicla Sense ME How to Change the Acceleration Range from +-2g to +-16g
Best reply by BSTRobin
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();
...
}
1
4 replies
Resolved