Looks to me your code will work just once after a powerup or a board reset. Is this what you want ?
Otherwise look closer to the blink without delay example.
Looks to me your code will work just once after a powerup or a board reset. Is this what you want ?
Otherwise look closer to the blink without delay example.