While troubleshooting I had make the loop as small as possible and added WAKE pin13... so I can see the LED and it also enables ICs tx, rx is always enabled...
void loop(){
digitalWrite(WAKE, HIGH);
if (ibusTrx.available()) {
ibusTrx.write(prevButton);
digitalWrite(WAKE, LOW);
}
}
if I put digitalWrite(WAKE, HIGH); after the if (ibusTrx.available()) { line it never gets high...
if I remove if (ibusTrx.available()) { data doesnt get sent... but I dont understand why... if (ibusTrx.available()) { is for rx not tx....