RF24Audio icon indicating copy to clipboard operation
RF24Audio copied to clipboard

Need I fix the code when using ATmega168P with 8MHz clock speed?

Open hbxiscool opened this issue 3 years ago • 3 comments

Dear @TMRh20 Need I do some change in the code when using ATmega168P with 8MHz clock speed? Regards

hbxiscool avatar Nov 26 '21 12:11 hbxiscool

You would need to edit the following lines and change 1600000 to 800000, change 800000 to 400000 https://github.com/nRF24/RF24Audio/blob/master/RF24Audio.cpp#L121 https://github.com/nRF24/RF24Audio/blob/master/RF24Audio.cpp#L347 https://github.com/nRF24/RF24Audio/blob/master/RF24Audio.cpp#L349 https://github.com/nRF24/RF24Audio/blob/master/RF24Audio.cpp#L569

I think that's about it, but I have no way to test this. I'll see about getting this updated so its automatic based on the defined CPU speed. Please let me know if this works.

TMRh20 avatar Nov 26 '21 18:11 TMRh20

Thank you TMRh20, I'll test later.

Regards

hbxiscool avatar Nov 27 '21 10:11 hbxiscool

I just updated the code to auto adjust the timers, so you can just re-install/update the library to test it out instead of modifying the files manually.

TMRh20 avatar Nov 27 '21 13:11 TMRh20