FadeLed
A simple Arduino library to fade leds on hardware PWM
FadeLedBasic.ino File Reference

Example how to use FadeLed library. More...

#include <FadeLed.h>

Functions

void setup ()
 
void loop ()
 

Variables

FadeLed leds [2] = {5, 6}
 
const byte FadeDownPin = 12
 
const byte FadeUpPin = 13
 
unsigned long millisLast
 

Detailed Description

Example how to use FadeLed library.

Septillion (https://github.com/sseptillion)

Date
2016-08-11

This is an example how to use FadeLed library. It will fade two LEDs in two different ways on two different pins.

pin 5 Will fade up and down all the time but only up to halve brightness. It will do this in 5 seconds

pin 6 Will fade up/down every 5 seconds. It will begin turned on at full brightness. If will fade up in 4 seconds and down in 2 seconds. A LED at pin 12 and pin 13 will indicate if the LED on pin 6 is fading down or up correspondingly.