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
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.