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.
L3G4200D Class Reference
Interface library for the ST L3G4200D 3-axis gyro. More...
#include <L3G4200D.h>
Public Member Functions | |
| L3G4200D (PinName sda, PinName scl) | |
| Create a new L3G4200D I2C interface. | |
| void | read (int g[3]) |
| Read gyro values. | |
Detailed Description
Interface library for the ST L3G4200D 3-axis gyro.
Ported from Pololu L3G4200D library for Arduino by Michael Shimniok http://bot-thoughts.com
Definition at line 82 of file L3G4200D.h.
Constructor & Destructor Documentation
| L3G4200D | ( | PinName | sda, |
| PinName | scl | ||
| ) |
Create a new L3G4200D I2C interface.
- Parameters:
-
sda is the pin for the I2C SDA line scl is the pin for the I2C SCL line
Definition at line 44 of file L3G4200D.cpp.
Member Function Documentation
| void read | ( | int | g[3] ) |
Read gyro values.
- Parameters:
-
g Array containing x, y, and z gyro values
- Returns:
- g Array containing x, y, and z gyro values
Definition at line 77 of file L3G4200D.cpp.
Generated on Sat Jul 16 2022 23:33:02 by
1.7.2