Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MMC5883L Class Reference
The MMC5883L 3-Axis Digital Compass IC. More...
#include <MMC5883L.h>
Public Member Functions | |
| MMC5883L (PinName sda, PinName scl) | |
| Constructor. | |
| MMC5883L (I2C &i2c) | |
| Constructor that accepts external i2c interface object. | |
Static Public Attributes | |
| static const int | I2C_ADDRESS = 0x60 |
| The I2C address that can be passed directly to i2c object (it's already shifted 1 bit left). | |
Detailed Description
The MMC5883L 3-Axis Digital Compass IC.
Definition at line 77 of file MMC5883L.h.
Constructor & Destructor Documentation
| MMC5883L | ( | PinName | sda, |
| PinName | scl | ||
| ) |
Constructor.
Calls init function
- Parameters:
-
sda - mbed pin to use for the SDA I2C line. scl - mbed pin to use for the SCL I2C line.
Definition at line 4 of file MMC5883L.cpp.
| MMC5883L | ( | I2C & | i2c ) |
Constructor that accepts external i2c interface object.
Calls init function
- Parameters:
-
i2c The I2C interface object to use.
Definition at line 104 of file MMC5883L.h.
Field Documentation
const int I2C_ADDRESS = 0x60 [static] |
The I2C address that can be passed directly to i2c object (it's already shifted 1 bit left).
Definition at line 85 of file MMC5883L.h.
Generated on Fri Sep 2 2022 00:57:54 by
1.7.2