Skip to content

Commit b2fbce5

Browse files
committed
adding inclinometer example, change import order for pylint
1 parent d61a94d commit b2fbce5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/lsm303_accel_inclinometer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
""" Display inclination data five times per second """
22

33
import time
4+
from math import atan2, degrees
45
import board
56
import busio
67
import adafruit_lsm303_accel
7-
from math import atan2, degrees
8+
89

910
i2c = busio.I2C(board.SCL, board.SDA)
1011
sensor = adafruit_lsm303_accel.LSM303_Accel(i2c)

0 commit comments

Comments
 (0)