Hello,
I'm currently trying to get a 434 MHz RF Link between my Arduino UNO (as receiver) and an Attiny85(as transmitter), using the Manchester library of carl47. I followed this tutorial Mchr3k - Arduino: Wireless sensor node - rf link working (2), but unfortunately I can't succeed in compiling this basic sketch :
#include <MANCHESTER.h>
#define TxPin 1 //the digital pin to use to transmit data
unsigned int Tdata = 0; //the 16 bits to send
void setup()
{
MANCHESTER.SetTxPin(TxPin); // sets the digital pin as output default 4
}//end of setup
void loop()
{
Tdata +=1;
MANCHESTER.Transmit(Tdata);
delay(100);
}//end of loop
I get the following errors:
/home/valere/sketchbook/libraries/Manchester/MANCHESTER.cpp: In constructor ‘MANCHESTERClass::MANCHESTERClass()’:
/home/valere/sketchbook/libraries/Manchester/MANCHESTER.cpp:42: erreur: ‘TCCR2A’ was not declared in this scope
/home/valere/sketchbook/libraries/Manchester/MANCHESTER.cpp:43: erreur: ‘TCCR2B’ was not declared in this scope
/home/valere/sketchbook/libraries/Manchester/MANCHESTER.cpp:44: erreur: ‘TIMSK2’ was not declared in this scope
/home/valere/sketchbook/libraries/Manchester/MANCHESTER.cpp: In member function ‘unsigned int MANCHESTERClass::Receive()’:
/home/valere/sketchbook/libraries/Manchester/MANCHESTER.cpp:85: erreur: ‘TCNT2’ was not declared in this scope
/home/valere/sketchbook/libraries/Manchester/MANCHESTER.cpp:126: erreur: ‘TCNT2’ was not declared in this scope
Thank for any helpful answer !