I am quiet a newbie. I am wondering, if someone could help me with this? I have a project from university to program a robot based on a Leonardo board.
Except the ICSP PINs, all other PINs are occupied by sensors, motors, ect. I have to communicate over these PINs via SoftwareSerial library, using PIN 16 and 14 for this.
Furthermore, I have to do Obstacle detetection with two IR Receiver, which is on PIN 17. For this I am using a ISR routine.
Apperantly both the PINs for SoftwareSerial communication and the PIN for the IR receiver are in the same PCINT0_vect vector, which is triggered in case of a change on these PINs. This is the reason, ehy I can't compile the code.
Is there a way I can use both anyway? Can I assigne PINs to another vector?
Thank you for a fast answer.