Go Down

Topic: Re: Mirf Library not working (Read 1 time) previous topic - next topic

shiu748

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

Bajdi

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

shiu748

#2
Jan 03, 2013, 03:18 am Last Edit: Jan 03, 2013, 03:57 am by shiu748 Reason: 1
I have checked and it is Arduino.h

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

PaulS

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

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

mmaurito

yo reemplace:

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

por

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

y funciono.
Saludos

Go Up