mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 13:20:14 +02:00
7bbcee3cf0
To keep them all together, mirroring the top-level directory structure. Signed-off-by: Damien George <damien@micropython.org>
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()
|