HMC6352 compas sensor code problem

Hello forum!!
So i want to just test this sensor with the data provided in this example HMC6352sparkfun \ Learning \ Wiring , but the compiler finds these errors in the code:

sketch_nov07a.ino: In function 'void setup()':
sketch_nov07a:12: error: 'WLED' was not declared in this scope

Can someone suggest how to correct the code?
Im using arduino mega 2560 BTW

const byte WLED = 13; ?
Or just delete all references to WLED - I can't see any use for it.

Well , now the code is fine but the sensor does'nt seems to do anithing... the IDE serial monitor does'nt receive data ..so i found another code for the sensor here > Arduino Playground - Hmc6352 , but it has errors again...

sketch_nov07a.ino: In function 'void loop()':
sketch_nov07a:34: error: 'class TwoWire' has no member named 'send'

As of Arduino 1.0, the Wire.send() function was renamed to Wire.write() for consistency with other libraries.

sketch_nov07a:45: error: 'class TwoWire' has no member named 'receive'

As of Arduino 1.0, the Wire.receive() function was renamed to Wire.read() for consistency with other libraries.

Any thoughts on this one?

As of Arduino 1.0, the Wire.send() function was renamed to Wire.write() for consistency with other libraries.

Big clue there.

So renamed send and receive to write and read .... The serial monitor says:

current heading : 0. 0 degrees (period) and dont changes with rotating the sensor..

So why it wont change?? Maybe i gotta ask this in another topic ..

Thanks for the help AWOL :smiley: !!

I don't have this sensor, so can't comment.
I could move this to the "Sensors" board, if you like.

No thanks !!
I'll make new topic in sensors