micropython: add micropython component
This commit is contained in:
13
components/language/micropython/tests/pyb/accel.py
Normal file
13
components/language/micropython/tests/pyb/accel.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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()
|
Reference in New Issue
Block a user