Simple library for MAG3110 magenetometer as built into Avnet Wi-Go module
Fork of MAG3110 by
Diff: MAG3110.h
- Revision:
- 5:760476084e70
- Parent:
- 4:cf40601402b7
--- a/MAG3110.h Fri May 24 20:16:24 2013 +0000 +++ b/MAG3110.h Wed Feb 12 22:23:00 2014 +0000 @@ -86,6 +86,13 @@ * @param sdl SCL pin * @param addr addr of the I2C peripheral */ + MAG3110(PinName sda, PinName scl, int addr); + /** + * Main constructor + * @param sda SDA pin + * @param sdl SCL pin + * @param addr addr of the I2C peripheral + */ MAG3110(PinName sda, PinName scl); /** * Debug version of constructor