Display the accel results (acceleration is measured in m/s^2) Get a new sensor event from the accelerometer and magnetometer getEventįunction to continuously read data from the sensor, and display it on the The following loop implementation shows how you can use the. TSL2561_REGISTER_CHAN1_HIGH = 0x0F // Light data channel 1, high byte TSL2561_REGISTER_CHAN1_LOW = 0x0E, // Light data channel 1, low byte ![]() TSL2561_REGISTER_CHAN0_HIGH = 0x0D, // Light data channel 0, high byte TSL2561_REGISTER_CHAN0_LOW = 0x0C, // Light data channel 0, low byte TSL2561_REGISTER_ID = 0x0A, // TSL2561 identification setting TSL2561_REGISTER_CRC = 0x08, // Factory use only TSL2561_REGISTER_INTERRUPT = 0x06, // Interrupt settings TSL2561_REGISTER_THRESHHOLDH_HIGH = 0x05, // Interrupt high threshold high-byte TSL2561_REGISTER_THRESHHOLDH_LOW = 0x04, // Interrupt high threshold low-byte TSL2561_REGISTER_THRESHHOLDL_HIGH = 0x03, // Interrupt low threshold high-byte TSL2561_REGISTER_THRESHHOLDL_LOW = 0x02, // Interrupt low threshold low-byte TSL2561_REGISTER_TIMING = 0x01, // Set integration time register TSL2561_REGISTER_CONTROL = 0x00, // Control/power register Magnetometer data should be True if the event read was successful, otherwise false. Magnetometer in one call, and is a deviation from the standardĪdafruit_Sensor API, but is provided as a convenience since mostĪHRS algorithms require sensor samples to be as close in time accelEventĪ reference to the sensors_event_t instances where the This function reads from both the accelerometer and the * designed specifically to work with the Adafruit FXOS8700 breakout:Ĭopy Code Gets the most recent sensor events. ![]() * This is part of Adafruit's FXOS8700 driver for the Arduino platform. * BSD license, all text here must be included in any redistribution. * Written by Kevin "KTOWN" Townsend for Adafruit Industries. * installed the latest version before using this library. * Adafruit_Sensor being present on your system. * please support Adafruit and open-source hardware by purchasing * Adafruit invests time and resources providing this open source code, * These sensors use I2C to communicate, 2 pins (SCL+SDA) are required It is designed specifically to work with the * This is the documentation for Adafruit's FXOS8700 driver for the * Adafruit FXOS8700 accel/mag sensor driver
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |