Pages: [1]   Go Down
Author Topic: Re: Mirf Library not working  (Read 1058 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Belgium
Offline Offline
Sr. Member
****
Karma: 1
Posts: 283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have checked and it is Arduino.h

Any idea what the problem can be. Still my mirf examples are not compiling.
« Last Edit: January 02, 2013, 09:57:36 pm by shiu748 » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yo reemplace:

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

por

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

y funciono.
Saludos
Logged

Pages: [1]   Go Up
Jump to: