Skip to content

Commit c5a4b6e

Browse files
authored
Update bno08x_simpletest.py
The BNO085 only supports Fast mode I2C (400kHz). However, this frequency setting actually worked on a RasPi 0 (clock stretching issues aside) so it must be disregarded at some point - may not fair so well on other devices.
1 parent f4e8dfd commit c5a4b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/bno08x_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313
from adafruit_bno08x.i2c import BNO08X_I2C
1414

15-
i2c = busio.I2C(board.SCL, board.SDA, frequency=800000)
15+
i2c = busio.I2C(board.SCL, board.SDA, frequency=400000)
1616
bno = BNO08X_I2C(i2c)
1717

1818
bno.enable_feature(BNO_REPORT_ACCELEROMETER)

0 commit comments

Comments
 (0)