Tidy up some pin change stuff
Pin change fix for Tiny - I think

I'm not sure about lines 150 - 181