Skip to content

Commit

Permalink
adding inclinometer example, change import order for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Feb 5, 2020
1 parent d61a94d commit b2fbce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/lsm303_accel_inclinometer.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
""" Display inclination data five times per second """

import time
from math import atan2, degrees
import board
import busio
import adafruit_lsm303_accel
from math import atan2, degrees


i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_lsm303_accel.LSM303_Accel(i2c)
Expand Down

0 comments on commit b2fbce5

Please sign in to comment.