Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

author here, quick update: the sensor code is now a standalone pip package

    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
 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: