- if (!ao_hmc5883_setup()) {
- printf("hmc5883 not present\n");
- return;
- }
-#if 0
- for (addr = 0; addr <= 12; addr++) {
- ao_hmc5883_read(addr, &data, 1);
- printf ("hmc5883 register %2d: %02x\n",
- addr, data);
- }
-#endif
- ao_hmc5883_sample(&sample);