We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43f54f5 + bdf6ada commit 1a48197Copy full SHA for 1a48197
examples/values.py
@@ -0,0 +1,20 @@
1
+import time
2
+import board
3
+import busio
4
+import adafruit_bno055
5
+
6
+i2c = busio.I2C(board.SCL, board.SDA)
7
+sensor = adafruit_bno055.BNO055(i2c)
8
9
+while True:
10
+ print('Temperature: {} degrees C'.format(sensor.temperature))
11
+ print('Accelerometer (m/s^2): {}'.format(sensor.accelerometer))
12
+ print('Magnetometer (microteslas): {}'.format(sensor.magnetometer))
13
+ print('Gyroscope (deg/sec): {}'.format(sensor.gyroscope))
14
+ print('Euler angle: {}'.format(sensor.euler))
15
+ print('Quaternion: {}'.format(sensor.quaternion))
16
+ print('Linear acceleration (m/s^2): {}'.format(sensor.linear_acceleration))
17
+ print('Gravity (m/s^2): {}'.format(sensor.gravity))
18
+ print()
19
20
+ time.sleep(1)
0 commit comments