Refactored to follow driver update
This commit is contained in:
parent
54d5aa994c
commit
0ad6918c88
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue