Module pmod_gyro

PmodGYRO module that gets the gyroscopes data via SPI.

Behaviours: gen_server.

Description

PmodGYRO module that gets the gyroscopes data via SPI.

Start the driver with
  1> grisp:add_device(spi1, pmod_gyro).

Function Index

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

Function Details

read/0

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}


Generated by EDoc