added digital write for LED blinking