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.
Dependencies: mbed
Diff: gy521.hpp
- Revision:
- 3:28c77df7c0b6
- Parent:
- 0:ca84ed7518f5
- Child:
- 4:39ef4d91dc34
--- a/gy521.hpp Fri Jan 03 02:37:48 2020 +0000
+++ b/gy521.hpp Mon Jan 06 11:06:26 2020 +0000
@@ -8,6 +8,9 @@
*example
*L432KC : SDA = PB_7 , SCL = PB_6
*F446RE : SDA = PB_3 , SCL = PB_10
+ *ループ内で毎回
+ *<obj>.update()
+ *を呼び出してください。
*/
//I2C i2c(SDA,SCL);
//GY521 gyro(i2c);
@@ -17,7 +20,7 @@
GY521(I2C &i2c,int bit = 2,int calibration = 1000,double user_reg = 1.0);
double yaw;
//double temp;
- void updata();
+ void update();
void reset(int user);
void start(double start = 0){
yaw = start;