Switch #define for Z_MSB/Z_LSB and Y_MSB/Y_LSB. Per the datasheet it's X, Z, Y not X, Y, Z

Fork of HMC5883L by GM AT

Wiki pages

Sort by: Score, Alphabetical, Date