Many thanks Robin, I've taken that on board and am trying to use that style of formatting from now on!
Also moved that line, not sure how much it changed but at least now any issues are easier to identify.
And sterretje, massive thanks too, that way makes a LOT more sense, I wrote a new script using that and added an array for the bearingStrengthTotal to serve as a method of indexing so it could tell which pin to write to.
And it all worked! There's a couple of weird issues regarding the PWM value but hopefully it's a fairly small tweak needed and the rest of the script runs as intended!
Many thanks, learned a lot! ![]()