ledMode seems to break script??

Any other pin can drive the LED through a suitable resistor. If you can, choose a pin with PWM capability, so you can use analogWrite() to dim the LED.