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
693 B
C
34 lines
693 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 Qmi8658Config {
|
|
/** I2C address (0x6A when SA0=low, 0x6B when SA0=high) */
|
|
uint8_t address;
|
|
};
|
|
|
|
struct Qmi8658Data {
|
|
float ax, ay, az; // acceleration in g (±8g range)
|
|
float gx, gy, gz; // angular rate in °/s (±2048°/s range)
|
|
};
|
|
|
|
/**
|
|
* Read accelerometer and gyroscope data.
|
|
* @param[in] device qmi8658 device
|
|
* @param[out] data Pointer to Qmi8658Data to populate
|
|
* @return ERROR_NONE on success
|
|
*/
|
|
error_t qmi8658_read(struct Device* device, struct Qmi8658Data* data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|