Refactored to follow driver update

This commit is contained in:
Kattni 2018-03-01 19:20:37 -05:00
parent 54d5aa994c
commit 0ad6918c88

View file

@ -108,7 +108,7 @@ while True:
wing.show() wing.show()
# Read accelerometer... # Read accelerometer...
f_x, f_y, f_z = sensor.raw_accelerometer f_x, f_y, f_z = sensor.raw_acceleration
ax = f_x >> 8 # Transform accelerometer axes ax = f_x >> 8 # Transform accelerometer axes
ay = f_y >> 8 # to grain coordinate space ay = f_y >> 8 # to grain coordinate space
az = abs(f_z) >> 11 # Random motion factor az = abs(f_z) >> 11 # Random motion factor