mirror of
https://github.com/micropython/micropython.git
synced 2026-01-18 01:47:20 +01:00
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()
|