You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
16 lines
695 B
Python
16 lines
695 B
Python
TYPE_ACCELEROMETER = 1 # Units: m/s² (meters per second squared)
|
|
TYPE_MAGNETIC_FIELD = 2 # Units: μT (micro teslas)
|
|
TYPE_GYROSCOPE = 4 # Units: deg/s (degrees per second)
|
|
TYPE_TEMPERATURE = 13 # Units: °C (generic, returns first available - deprecated)
|
|
TYPE_IMU_TEMPERATURE = 14 # Units: °C (IMU chip temperature)
|
|
TYPE_SOC_TEMPERATURE = 15 # Units: °C (MCU/SoC internal temperature)
|
|
|
|
# mounted_position:
|
|
FACING_EARTH = 20 # underside of PCB, like fri3d_2024
|
|
FACING_SKY = 21 # top of PCB, like waveshare_esp32_s3_lcd_touch_2 (default)
|
|
|
|
# Gravity constant for unit conversions
|
|
GRAVITY = 9.80665 # m/s²
|
|
|
|
IMU_CALIBRATION_FILENAME = "imu_calibration.json"
|