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
|   | SampleDevice | 
| Collects the gyro readings from the device. | |
|  - VOID | Return | 
|   | GetGyroReading | 
| Collects one of the gyroscope readings from the last sample. | |
|  - BYTE | Axis | 
| 0=X, 1=Y, 2=Z | |
|  - INT | Return | 
|   | ReadRegister | 
| Reads a single register from the gyroscope and returns the value as a byte. | |
|  - BYTE | Address | 
|  - BYTE | Return | 
|   | WriteRegister | 
| Writes a single register on the gyroscope. | |
|  - BYTE | Address | 
|  - BYTE | Data | 
|  - VOID | Return | 
|   | Initialise | 
| Initialises the SPI bus ready to communicate with the sensor. | |
|  - VOID | Return | 






