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

A simple Arduino library to fade leds on the hardware PWM. More...

#include "Arduino.h"

Go to the source code of this file.

Classes

class  FadeLed
 Main class of the FadeLed-library. More...
 

Macros

#define FADE_LED_MAX_LED   6
 Maximum number of FadeLed objects. More...
 
#define FADE_LED_RESOLUTION   255
 The maximum brightness step of the PWM. More...
 

Detailed Description

A simple Arduino library to fade leds on the hardware PWM.

This library takes all the heavy lifting of fading a led.

Macro Definition Documentation

#define FADE_LED_MAX_LED   6

Maximum number of FadeLed objects.

Default = 6, the number of hardware PWM pins on a Uno/Pro Mini/Nano

#define FADE_LED_RESOLUTION   255

The maximum brightness step of the PWM.

Can be made less for less then 8-bit PWM

Warning
Can't simply be increased for more then 8-bit because byte type is used to pass brightness values!