FastLED 3.9.3
Loading...
Searching...
No Matches
Cylon.ino File Reference

Detailed Description

An animation that moves a single LED back and forth (Larson Scanner effect) using the fx library cylon.

Definition in file Cylon.ino.

#include <FastLED.h>
#include "fx/1d/cylon.hpp"

Go to the source code of this file.

Macros

#define NUM_LEDS   64
 
#define DATA_PIN   2
 

Functions

void setup ()
 
void loop ()
 

Variables

CRGB leds [NUM_LEDS]
 
CylonRef cylon = CylonRef::New(NUM_LEDS)
 

Macro Definition Documentation

◆ DATA_PIN

#define DATA_PIN   2

Definition at line 14 of file Cylon.ino.

◆ NUM_LEDS

#define NUM_LEDS   64

Definition at line 9 of file Cylon.ino.

Function Documentation

◆ loop()

void loop ( )

Definition at line 27 of file Cylon.ino.

◆ setup()

void setup ( )

Definition at line 22 of file Cylon.ino.

Variable Documentation

◆ cylon

CylonRef cylon = CylonRef::New(NUM_LEDS)

Definition at line 20 of file Cylon.ino.

◆ leds

CRGB leds[NUM_LEDS]

Definition at line 17 of file Cylon.ino.