set digital pin mode to write for digital output

Before this change the LED would not blink