code.py
 1  # SPDX-FileCopyrightText: 2017 Kattni Rembor for Adafruit Industries
 2  #
 3  # SPDX-License-Identifier: MIT
 4  
 5  import time
 6  from adafruit_circuitplayground.express import cpx
 7  
 8  while True:
 9      x, y, z = cpx.acceleration
10      print((x, y, z))
11      time.sleep(0.5)