Ghost in the machine could well be a bad earth,,,,seams okay now but those Dupont wires aren't holding up to good with all the unplugging and plugging.....keeping an eye on it and will sort out better cable when it's all sorted.
I'm still thinking and looking at the code to see if I can get out...