mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 09:25:06 +00:00
Font size set to 18 for 800x480 displays Fix web server dashboard not rendering when sdcard isn't present Added new driver modules - BM8563 RTC - RX8130CE RTC - MPU6886 IMU - QMI8658 IMU - M5PM1 Power Management Chip Applied the above modules to applicable devicetrees. Added new device: M5Stack StickS3 Added new M5Stack Tab5 St7123 variant. ButtonControl changed to use interupts and xQueue, added AppClose action. And some bonus symbols of course, the apps are hungry for symbols.
34 lines
656 B
C
34 lines
656 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <tactility/error.h>
|
|
|
|
struct Device;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Mpu6886Config {
|
|
/** Address on bus */
|
|
uint8_t address;
|
|
};
|
|
|
|
struct Mpu6886Data {
|
|
float ax, ay, az; // acceleration in g (±8g range)
|
|
float gx, gy, gz; // angular rate in °/s (±2000°/s range)
|
|
};
|
|
|
|
/**
|
|
* Read accelerometer and gyroscope data.
|
|
* @param[in] device mpu6886 device
|
|
* @param[out] data Pointer to Mpu6886Data to populate
|
|
* @return ERROR_NONE on success
|
|
*/
|
|
error_t mpu6886_read(struct Device* device, struct Mpu6886Data* data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|