moon
Dependencies: Hexi_OLED_SSD1351
GYROMETER.h
00001 #ifndef FXAS21002_H 00002 #define FXAS21002_H 00003 #include "mbed.h" 00004 00005 #define GYRO_I2C_ADDRESS 0x40 00006 00007 #define GYRO_STATUS 0x00 00008 #define GYRO_DEVICE_DETAIL 0x0C 00009 #define GYRO_CTRL_REG0 0x0D 00010 #define GYRO_CTRL_REG1 0x13 00011 #define GYRO_WHO_AM_I_VALUE 0xD1 00012 00013 class GYROMETER 00014 { 00015 public: 00016 00017 GYROMETER(PinName sda, PinName scl); 00018 00019 void Config(void); 00020 00021 void getData(float * du); 00022 00023 private: 00024 I2C gyroi2c; 00025 00026 }; 00027 00028 #endif 00029
Generated on Tue Jul 12 2022 18:19:43 by
1.7.2