Skip to content

Commit 45c31c2

Browse files
committed
Tweaked Hz in comment
1 parent 9cc127c commit 45c31c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/l3gd20_write_registers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
I2C = busio.I2C(board.SCL, board.SDA)
88
SENSOR = adafruit_l3gd20.L3GD20_I2C(I2C, rng=adafruit_l3gd20.L3DS20_RANGE_2000DPS)
99

10-
# Update the chip's register 0x20 (CTRL_REG1) with the value 0xBF
10+
# Update the chip's register 0x20 (CTRL1) with the value 0xBF
1111
SENSOR.write_register(0x20, 0xBF)
1212

13-
# This sets the output data rate to 380Hz and keeps everything else on their default modes
14-
# For more information about CTRL_REG1, see section 7.2 of the datasheet
13+
# This sets the output data rate to 400Hz and keeps everything else on their default modes
14+
# For more information about CTRL1, see section 7.2 of the datasheet
1515

1616
while True:
1717
print("Angular Momentum (rad/s): {}".format(SENSOR.gyro))

0 commit comments

Comments
 (0)