Behaviours: gen_server
.
PmodGYRO module that gets the gyroscopes data via SPI.
Start the driver with1> grisp:add_device(spi1, pmod_gyro).
read/0 | Read the gyroscopes X, Y and Z values in degrees per second. |
read() -> {X::float(), Y::float(), Z::float()}
Read the gyroscopes X, Y and Z values in degrees per second.
2> pmod_gyro:read(). {249.28279313922965,-26.078862235243843,12.764756149667337}
Generated by EDoc