Attiny85 and magnetometer hmc5883L

I fail to read the magnetometer hmc5883L using Attiny85 but using Arduino is fine.

Anyone has any idea on reading the magnetometer using Attiny85?


Please read the "how to post" message, and follow the directions.

googled everywhere and found most tutorials make hmc5883l work with Arduino Uno, but not Attiny85

There is no reason that ATtiny85 cannot read the device, so either it is defective or (more likely) you are doing something wrong.