All Projects / Tutorial / 5 Ways to Blink an LED
5 Ways to Blink an LED
0 votes
Sign In to add your vote
DOWNLOAD NOW!
DIFFICULTY
DESCRIPTION
Here's a quick tutorial to show 5 different ways to blink LEDs!

One (Out_A):
The easist way! Just set an output as a Tone between 1 and 30.

Two (Out_B):
Turn the light on. Delay. Turn it off. Delay.

Three (Out_C):
Use a variable (Var_1) to invert whatever it was set to last time. If it was on, turn it off. If it was off, turn it on.

Four (Out_D):
Use a variable (Var_2) to smoothly ramp the brightness up an down.

Five (Out_E):
Set the brightness of the LED using the random() function.
THE CODE
Setup
Main Program
WHAT YOU NEED
1:

2:

3:

4:

5:

A:
LED

B:
LED

C:
LED

D:
LED

E:
LED

CREDITS
Built by
Teague Labs
Posted by
Adam Kumpf
Views
2808
Downloads
185