View Source pmod_gyro (grisp v2.8.0)

PmodGYRO module that gets the gyroscopes data via SPI.

Start the driver with

1> grisp:add_device(spi1, pmod_gyro).

Summary

Functions

Read the gyroscopes X, Y and Z values in degrees per second.

Functions

read()

-spec read() -> {X :: float(), Y :: float(), Z :: float()}.

Read the gyroscopes X, Y and Z values in degrees per second.

Example

 2> pmod_gyro:read().
 {249.28279313922965,-26.078862235243843,12.764756149667337}