Just spotted a bug in my program
Add
currentPin++;
on the line before
currentPin %= 2;
so now it reads
currentPin++;
currentPin %= 2;
Just spotted a bug in my program
Add
currentPin++;
on the line before
currentPin %= 2;
so now it reads
currentPin++;
currentPin %= 2;