Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: JY901.h
- Revision:
- 7:a06925c41956
- Parent:
- 6:7e7dd6184774
- Child:
- 9:899168e14871
--- a/JY901.h Wed Nov 14 02:18:02 2018 +0000 +++ b/JY901.h Mon Apr 12 01:47:17 2021 +0000 @@ -1,6 +1,7 @@ #ifndef MBED_JY901_H #define MBED_JY901_H +#include "SoftI2C.h" #include "mbed.h" /*example************************************* @@ -95,8 +96,8 @@ class JY901 { public: - JY901(I2C *i2c); - JY901(I2C *i2c, Timer *t); + JY901(SoftI2C *i2c); + JY901(SoftI2C *i2c, Timer *t); /****************************************/ //not recommended @@ -153,7 +154,7 @@ float gyroZ[3]; float angleZ; - I2C *_i2c; + SoftI2C *_i2c; Timer *_timer; };