adafruit / adafruit/Adafruit_CircuitPython_LSM9DS1
Setting accel_range and gyro_scale
- Dominant language
- Python
- Stars
- 22
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Dear all,
I just got two short questions regarding accel_range and gyro_scale.
a) Is it correct to set the values like that initially, or do I need to reset the sensor afterwards in some fashion?
````
import board
import busio
import adafruit_lsm9ds1
lsm9ds1 = adafruit_lsm9ds1.LSM9DS1_I2C(i2c)
lsm9ds1.accel_range = adafruit_lsm9ds1.ACCELRANGE_16G
lsm9ds1.gyro_scale = adafruit_lsm9ds1.GYROSCALE_2000DPS
````
b) Can I, at any time, set the range/scale to a new value like this, or do I need to reset/give another command to the sensor?
````
lsm9ds1.accel_range = adafruit_lsm9ds1.ACCELRANGE_2G
lsm9ds1.gyro_scale = adafruit_lsm9ds1.GYROSCALE_245DPS
````
Thanks a lot for your help!
Contributor guide
No contributing guide indexed for this repository
Research direction
No file, test, or entry point is mentioned. Begin by checking the LSM9DS1 Python module documentation and its sensor-setting guidance; done means documenting whether accel_range and gyro_scale assignments take effect immediately and can be changed at runtime.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100