mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
14 lines
179 B
Python
14 lines
179 B
Python
import pyb
|
|
|
|
if not hasattr(pyb, 'Accel'):
|
|
print('SKIP')
|
|
raise SystemExit
|
|
|
|
accel = pyb.Accel()
|
|
print(accel)
|
|
accel.x()
|
|
accel.y()
|
|
accel.z()
|
|
accel.tilt()
|
|
accel.filtered_xyz()
|