File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
I2C = busio .I2C (board .SCL , board .SDA )
8
8
SENSOR = adafruit_l3gd20 .L3GD20_I2C (I2C , rng = adafruit_l3gd20 .L3DS20_RANGE_2000DPS )
9
9
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
11
11
SENSOR .write_register (0x20 , 0xBF )
12
12
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
15
15
16
16
while True :
17
17
print ("Angular Momentum (rad/s): {}" .format (SENSOR .gyro ))
You can’t perform that action at this time.
0 commit comments