grove: initial groveLED implementation and move to maa 0.2.2 api

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-06 14:27:16 +01:00
parent edf88ef6a7
commit 050d6553cd
12 changed files with 218 additions and 5 deletions

View File

@ -77,9 +77,9 @@
using namespace upm;
Hmc5883l::Hmc5883l()
Hmc5883l::Hmc5883l(int bus)
{
m_i2c = maa_i2c_init();
m_i2c = maa_i2c_init(bus);
maa_i2c_address(m_i2c, HMC5883L_I2C_ADDR);
m_rx_tx_buf[0] = HMC5883L_CONF_REG_B;

View File

@ -32,7 +32,7 @@ namespace upm {
class Hmc5883l {
public:
/// Creates a Hmc5883l object
Hmc5883l();
Hmc5883l(int bus);
/// Returns the direction
float direction();