Hi Ioannis Thanks, I should have also mentioned it’s no good for writing another program into it. It’s blocking and event driven.
Meant as a stand alone receiver where it’s output ports reflect the state of the buttons on the joypad (even when held down).
So really intended for use with a program on another chip altogether, and saves touching this code again.