Blink an LED
The most elementary output of a microcontroller is the digital output. A digital output pin is either high or low and will turn an LED that is connected to it on or off. Although simple, this output can be used to control other devices using transistors or relays.
Specify the built-in LED connected to pin 13 of an A-Star 32U4 Micro as a digital output.
The connection port to the target.
Any value greater than 0 will turn on the LED.
Turn off the LED.
Blink the LED every second by toggling the output.