Simple library for MAG3110 magenetometer as built into Avnet Wi-Go module

Dependencies:   MotionSensor

Dependents:   Wi-Go-MagnetometerTest EE202A_HW1_MH serialtoxively mbed_nanosec_timer ... more

Embed: (wiki syntax)

« Back to documentation index

MAG3110 Class Reference

MAG3110 Class Reference

MAG3110 Class to read X/Y/Z data from the magentometer. More...

#include <MAG3110.h>

Public Member Functions

 MAG3110 (PinName sda, PinName scl)
 Main constructor.

Detailed Description

MAG3110 Class to read X/Y/Z data from the magentometer.

Definition at line 81 of file MAG3110.h.


Constructor & Destructor Documentation

MAG3110 ( PinName  sda,
PinName  scl 
)

Main constructor.

Parameters:
sdaSDA pin
sdlSCL pin
addraddr of the I2C peripheral

Definition at line 9 of file MAG3110.cpp.