A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.circuitpython.org/projects/lsm9ds0/en/latest/api.html below:

API Reference — Adafruit LSM9DS0 Library 1.0 documentation

Adafruit LSM9DS0 Library API Reference adafruit_lsm9ds0

CircuitPython module for the LSM9DS0 accelerometer, magnetometer, gyroscope. Based on the driver from: https://github.com/adafruit/Adafruit_LSM9DS0

See examples/simpletest.py for a demo of the usage.

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_lsm9ds0.LSM9DS0[source]

Driver for the LSM9DS0 accelerometer, magnetometer, gyroscope.

property accel_range

The accelerometer range. Must be a value of: - ACCELRANGE_2G - ACCELRANGE_4G - ACCELRANGE_6G - ACCELRANGE_8G - ACCELRANGE_16G

property acceleration

The accelerometer X, Y, Z axis values as a 3-tuple of m/s^2 values.

property gyro

The gyroscope X, Y, Z axis values as a 3-tuple of degrees/second values.

property gyro_scale

The gyroscope scale. Must be a value of: - GYROSCALE_245DPS - GYROSCALE_500DPS - GYROSCALE_2000DPS

property mag_gain

The magnetometer gain. Must be a value of: - MAGGAIN_2GAUSS - MAGGAIN_4GAUSS - MAGGAIN_8GAUSS - MAGGAIN_12GAUSS

property magnetic

The magnetometer X, Y, Z axis values as a 3-tuple of gauss values.

read_accel_raw()[source]

Read the raw accelerometer sensor values and return it as a 3-tuple of X, Y, Z axis values that are 16-bit unsigned values. If you want the acceleration in nice units you probably want to use the accelerometer property!

read_gyro_raw()[source]

Read the raw gyroscope sensor values and return it as a 3-tuple of X, Y, Z axis values that are 16-bit unsigned values. If you want the gyroscope in nice units you probably want to use the gyroscope property!

read_mag_raw()[source]

Read the raw magnetometer sensor values and return it as a 3-tuple of X, Y, Z axis values that are 16-bit unsigned values. If you want the magnetometer in nice units you probably want to use the magnetometer property!

read_temp_raw()[source]

Read the raw temperature sensor value and return it as a 16-bit unsigned value. If you want the temperature in nice units you probably want to use the temperature property!

property temperature

The temperature of the sensor in degrees Celsius.

class adafruit_lsm9ds0.LSM9DS0_I2C(i2c)[source]

Driver for the LSM9DS0 connected over I2C.

class adafruit_lsm9ds0.LSM9DS0_SPI(spi, xmcs, gcs)[source]

Driver for the LSM9DS0 connected over SPI.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4