pip install macimu
from macimu import IMU
with IMU() as imu:
print(imu.latest_accel()) # Sample(x, y, z) in g
print(imu.latest_gyro()) # Sample(x, y, z) in deg/s
requires sudo. details: https://github.com/olvvier/apple-silicon-accelerometer
Type gently = quiet click. Type hard = louder clack.
It feels way more natural than I expected.
First app to do this on mac, to my knowledge.