Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Sensor Autodetect Example

This program scans the I2C bus for supported sensors and prints their measurements.

Example output for the Raspberry SenseHat:

Sensor: Hts221Driver
- HUMIDITY: 30.443893
- TEMPERATURE: 39.23893
Sensor: Lps25hDriver
- PRESSURE: 958.1948
- TEMPERATURE: 39.564583
Sensor: Tcs3400Driver
- LIGHT: 0.0
- LIGHT_RED: 0.0
- LIGHT_GREEN: 0.0
- LIGHT_BLUE: 0.0
Sensor: Lsm9ds1Driver
- ACCELERATION_X: -0.031555347
- ACCELERATION_Y: -0.01359215
- ACCELERATION_Z: 0.9583963
- ANGULAR_VELOCITY_X: 3.7983336
- ANGULAR_VELOCITY_Y: 10.856654
- ANGULAR_VELOCITY_Z: 15.051271
Sensor: Lsm9ds1MagnetometerDriver
- MAGNETIC_FIELD_X: 0.3568224
- MAGNETIC_FIELD_Y: 0.099734485
- MAGNETIC_FIELD_Z: -0.25415814