+ for (;;) {
+#if 0
+ int i = 0;
+ //alternative, equivalent method which helps to understand exactly what
+ //the below does
+ mraa_i2c_address(i2c, HMC5883L_I2C_ADDR);
+ for (i = 0; i < DATA_REG_SIZE; i++) {
+ mraa_i2c_read_byte_data(i2c, HMC5883L_DATA_REG+i);
+ }
+#endif
+ // first 'select' the register we want to read from