mirror of
https://github.com/eclipse/upm.git
synced 2025-12-15 13:26:07 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user