Re: Mirf Library not working

Hi

I have been trying to compile and test the examples in the Mirf library (got from Arduino's website), but it does not compile giving a error saying Mirf was not declared in this scope.

Can anyone tell me what is wrong.

Below is the error i get:

ping_client.pde: In function 'void setup()':
ping_client:39: error: 'Mirf' was not declared in this scope
ping_client:39: error: 'MirfHardwareSpi' was not declared in this scope
ping_client.pde: In function 'void loop()':
ping_client:77: error: 'Mirf' was not declared in this scope

Probably because that library has not been updated to Arduino 1.0 or later... Look in the mirf library files and replace Wprogram.h with Arduino.h

I have checked and it is Arduino.h

Any idea what the problem can be. Still my mirf examples are not compiling.

I have checked and it is Arduino.h

You checked where? Exactly where did you put the library? Screenshots are worth more than words/hand waving.

I have checked and it is Arduino.h

But Arduino.h does not go with pde files. Arduino.h goes with ino files. WProgram.h goes with pde files.

yo reemplace:

#include <Spi.h>
#include <mirf.h>

por

#include <SPI.h>
#include <Mirf.h>

y funciono.
Saludos