Skip to content

Commit 1d4d9f3

Browse files
committed
docs: Fix ISM330DLC references to ISM330DL in root README.
1 parent a6293f9 commit 1d4d9f3

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ micropython-steami-lib/
2020
│ ├── vl53l1cx/ # Distance sensor VL53L1CX
2121
│ ├── apds9960/ # Gesture and color sensor APDS-9960
2222
│ ├── wsen_hids/ # Humidity sensor WSEN-HIDS 2525020210001
23-
│ ├── ism330dlc/ # Accelerometer and gyroscope ISM330DLCTR
23+
│ ├── ism330dl/ # Accelerometer and gyroscope ISM330DL
2424
│ ├── lis2mdl/ # Magnetometer LIS2MDLTR
2525
│ ├── wsen_pads/ # Pressure sensor WSEN-PADS 25110202133011
2626
│ ├── im34dt05/ # Digital microphone IM34DT05
@@ -199,33 +199,34 @@ distance = tof.read() # Distance in mm
199199

200200
```
201201

202-
### ISM330DLCTR (Accelerometer and Gyroscope)
202+
### ISM330DL (Accelerometer and Gyroscope)
203203

204-
The ISM330DLCTR is a 6DOF inertial module integrating accelerometer and gyroscope.
204+
The ISM330DL is a 6DOF inertial module integrating accelerometer and gyroscope.
205205

206206
#### Mounting and Running an Example
207207

208208
```bash
209209
# Mount the driver and run the example
210-
mpremote mount lib/ism330dlc run lib/ism330dlc/examples/imu_reading.py
210+
mpremote mount lib/ism330dl run lib/ism330dl/examples/basic_read.py
211211
```
212212

213213
#### Basic API
214214

215215
```python
216-
from ism330dlc import ISM330DLC
216+
from ism330dl import ISM330DL
217217

218218
# Initialization
219219
i2c = machine.I2C(1)
220-
imu = ISM330DLC(i2c)
220+
imu = ISM330DL(i2c)
221221

222222
# Reading values
223-
accel_x, accel_y, accel_z = imu.read_accel()
224-
gyro_x, gyro_y, gyro_z = imu.read_gyro()
223+
ax, ay, az = imu.acceleration_g()
224+
gx, gy, gz = imu.gyroscope_dps()
225+
temp = imu.temperature_c()
225226

226227
# Configuration
227-
imu.set_accel_odr(ISM330DLC.ACCEL_ODR_104HZ)
228-
imu.set_gyro_odr(ISM330DLC.GYRO_ODR_104HZ)
228+
from ism330dl.const import ACCEL_ODR_104HZ, ACCEL_FS_4G
229+
imu.configure_accel(ACCEL_ODR_104HZ, ACCEL_FS_4G)
229230
```
230231

231232
### APDS-9960 (Gesture and Color Sensor)

0 commit comments

Comments
 (0)