Just to recap, here is the correct wiring instructions for the
Battleswitch to Axon.
S1 (battleswitch) connects to Axon 3.3 Volt (+) on SV23
SC (battleswitch) connects to Axon 3.3 Volt (-) on SV23
See
Axon schematic.
Then a second connection connects from S1 (battleswitch) to Axon PC0 (Input).
Then you can write your code as I did in the first post and the following output:
When Battleswitch Green LED ON j=1 and i=0;
When Battleswitch Green LED OFF j=0 and i=1;
Green LED is toggled by the RC Transmitter.
When RC Transmitter is off, then i=1 and j=0;