UKHeliBob:
Personally I would avoid using pins 0 and 1 as they are used by the Serial interface.pinMode(13, OUTPUT);
pinMode(15, OUTPUT);
pinMode(16, OUTPUT);
Did pin 14 go missing ? The random selection includes 14 The built in LED on pin 13 may affect the output to another LED connected to it
I missed pin 14 (A0) when soldering..
(not sure how to adjust the code to reflect that)