mchr3k / arduino-libs-manchester

173 stars 113 forks source link

RX support for Attiny84 #23

Closed elademir closed 9 years ago

elademir commented 9 years ago

Hi, it seems the library does not works on Attiny84 RX mode. I thought maybe is a problem with the timer compare match or the interrupt call. The basic code works fine for TX but does not runs on RX mode, its never enters into the if (man.receiveComplete()){} loop, so, the attiny never recives data.

Can you help me to resolve this problem?. Currently I work on fix it but I do not understand yet how the library works at all.

Thanks!!

elademir commented 9 years ago

Hi again, I found the error. It is necessary add this line in the configuration function for the Attiny84:

TCCR1A = 0;

Please add this line to the library

regards!