From 6cd1331f54744fb30a72391d0ba15cdcdc9b2757 Mon Sep 17 00:00:00 2001 From: Hideki Yamauchi Date: Wed, 24 Oct 2018 15:57:41 +0900 Subject: [PATCH] support esp32-arduino --- README.md | 1 + examples/read9axis/read9axis.ino | 2 +- library.properties | 4 ++-- src/FaBo9Axis_MPU9250.cpp | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9b1c140..46abdc5 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ MPU9250 is 9-Axis sensor. ## Releases - 1.0.0 Initial release. +- 1.0.1 minimal fix ## How to install. diff --git a/examples/read9axis/read9axis.ino b/examples/read9axis/read9axis.ino index 15a9bee..55646c7 100644 --- a/examples/read9axis/read9axis.ino +++ b/examples/read9axis/read9axis.ino @@ -17,7 +17,7 @@ FaBo9Axis fabo_9axis; void setup() { - Serial.begin(9600); + Serial.begin(115200); Serial.println("RESET"); Serial.println(); diff --git a/library.properties b/library.properties index 57f94e2..b8f0d2a 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=FaBo 202 9Axis MPU9250 -version=1.0.0 +version=1.0.1 author=FaBo maintainer=Akira Sasaki sentence=A library for FaBo 9Axis I2C Brick paragraph=MPU9250 is 9-Axis sensor. category=Sensors url=https://github.com/FaBoPlatform/FaBo9AXIS-MPU9250-Library -architectures=avr \ No newline at end of file +architectures=avr,esp32 \ No newline at end of file diff --git a/src/FaBo9Axis_MPU9250.cpp b/src/FaBo9Axis_MPU9250.cpp index 4402818..fd0d29b 100644 --- a/src/FaBo9Axis_MPU9250.cpp +++ b/src/FaBo9Axis_MPU9250.cpp @@ -270,7 +270,7 @@ void FaBo9Axis::writeI2c(uint8_t address, uint8_t register_addr, uint8_t data) { void FaBo9Axis::readI2c(uint8_t address, uint8_t register_addr, uint8_t num, uint8_t * buffer) { Wire.beginTransmission(address); Wire.write(register_addr); - Wire.endTransmission(false); + Wire.endTransmission(); uint8_t i = 0; Wire.requestFrom(address, num); while( Wire.available() ) {