mirror of
https://github.com/eclipse/upm.git
synced 2025-09-13 13:45:02 +03:00
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:
@@ -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;
|
||||
|
@@ -32,7 +32,7 @@ namespace upm {
|
||||
class Hmc5883l {
|
||||
public:
|
||||
/// Creates a Hmc5883l object
|
||||
Hmc5883l();
|
||||
Hmc5883l(int bus);
|
||||
|
||||
/// Returns the direction
|
||||
float direction();
|
||||
|
Reference in New Issue
Block a user