Component: Gyroscope 3-Axis SPI (L3GD20) (Movement Orientation)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix TSL |
| Version | 2.0 |
| Category | Movement Orientation |
Contents
Gyroscope 3-Axis SPI (L3GD20) component
Allows access to a three axis digital gyroscope via an SPI interface. Useful for gaming, VR, motion control, navitagion and robotics.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Gyroscope_L3GD20_SPI.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Gyroscope_L3GD20_SPI.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetGyroReading
| GetGyroReading | |
| Collects one of the gyroscope readings from the last sample. | |
| Axis | |
| 0=X, 1=Y, 2=Z | |
| Return | |
Initialise
| Initialise | |
| Initialises the SPI bus ready to communicate with the sensor. | |
| Return | |
ReadRegister
| ReadRegister | |
| Reads a single register from the gyroscope and returns the value as a byte. | |
| Address | |
| Return | |
SampleDevice
| SampleDevice | |
| Collects the gyro readings from the device. | |
| Return | |
WriteRegister
| WriteRegister | |
| Writes a single register on the gyroscope. | |
| Address | |
| Data | |
| Return | |