sigve:
I am not sure how the functions i use work, i think finding that out is the key. But i dont know what liberary it uses etc. does anyone know?
That’s why, in the prior posting of mine, I sent you the full source to I2C tha works without use of a mystery-library. Even if you don’t use that code, it will help you understand how to use the AVR’s I2C hardware.
i sent all the things back to sparkfun, and they found nothing wrong with the compass, seams it’s just a little tricky to make it work. The gps was bruken though and i got a new one.
I havent got around to start working on some new code for the compass, but if i find out something i will be sure to post it here.