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

@@ -27,7 +27,8 @@
int
main(int argc, char **argv)
{
upm::Hmc5883l* compass = new upm::Hmc5883l();
// Use i2c device 0 all the time
upm::Hmc5883l* compass = new upm::Hmc5883l(0);
fprintf(stdout, "heading: %f\n", compass->heading());
return 0;