Skip to content

Commit fe61408

Browse files
authored
Merge pull request #6 from kattni/accel-example
Adding acceleration usage example
2 parents dbe5003 + c48c171 commit fe61408

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/trellism4_acceleration.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import time
2+
import adafruit_trellism4
3+
4+
trellis = adafruit_trellism4.TrellisM4Express()
5+
6+
while True:
7+
x, y, z = trellis.acceleration
8+
print(x, y, z)
9+
time.sleep(0.1)

0 commit comments

Comments
 (0)