This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> //esp32 SDA=21,SCL=22 | |
#include <BleMouse.h> | |
BleMouse bleMouse; | |
#define MPU6050_ADDR 0x68 // MPU-6050 device address | |
#define MPU6050_SMPLRT_DIV 0x19 // MPU-6050 register address | |
#define MPU6050_CONFIG 0x1a | |
#define MPU6050_GYRO_CONFIG 0x1b | |
#define MPU6050_ACCEL_CONFIG 0x1c | |
#define MPU6050_WHO_AM_I 0x75 |