Skip to content

Conversation

@mikeysklar
Copy link
Contributor

@mikeysklar mikeysklar commented Dec 10, 2025

Small update to provide support for low-power mode.

sensor.accelerometer_data_rate = Rate.RATE_1_6_HZ

Based on forum thread.

Verified on:

Component Details
Pi Model Pi 500 Plus
Pi OS Trixie 64-bit Lite
Sensor Adafruit ISM330DHCX (#4502)

Simple low power mode example:

import time
import board
import busio
from adafruit_lsm6ds.ism330dhcx import ISM330DHCX
from adafruit_lsm6ds import AccelRange, Rate

i2c = busio.I2C(board.SCL, board.SDA)

# sensor init, set range, set low ODR, show mode
sensor = ISM330DHCX(i2c)
sensor.accelerometer_range = AccelRange.RANGE_2G
sensor.accelerometer_data_rate = Rate.RATE_1_6_HZ
print("LPM:", sensor.low_power_mode)

while True:
    ax, ay, az = sensor.acceleration
    print(f"{ax:.3f}, {ay:.3f}, {az:.3f}")
    time.sleep(1)

@mikeysklar
Copy link
Contributor Author

@ladyada

@ladyada ladyada requested a review from BlitzCityDIY December 10, 2025 23:26
@BlitzCityDIY BlitzCityDIY merged commit 36247d1 into adafruit:main Dec 10, 2025
1 check passed
@mikeysklar
Copy link
Contributor Author

Thx @BlitzCityDIY

adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 11, 2025
Updating https://github.com/adafruit/Adafruit_CircuitPython_GPS to 3.11.6 from 3.11.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#121 from adafruit/dhalbert-patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_LSM6DS to 4.6 from 4.5.18:
  > Merge pull request adafruit/Adafruit_CircuitPython_LSM6DS#68 from mikeysklar/low-power

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 3.4.2 from 3.4.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#231 from adafruit/Neradoc-patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 3.4.3 from 3.4.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#119 from makermelissa/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_Qualia to 2.2.0 from 2.1.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_Qualia#15 from makermelissa/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants