FastLED 3.9.13
Loading...
Searching...
No Matches
HD107.ino File Reference

Detailed Description

Example showing how to use the HD107 and HD which has built in gamma correction.

This simply the HD107HD examles but with this chipsets.

See also
HD107HD.ino.

Definition in file HD107.ino.

#include <Arduino.h>
#include <FastLED.h>
#include <lib8tion.h>

Go to the source code of this file.

Macros

#define NUM_LEDS   20
 
#define STRIP_0_DATA_PIN   1
 
#define STRIP_0_CLOCK_PIN   2
 
#define STRIP_1_DATA_PIN   3
 
#define STRIP_1_CLOCK_PIN   4
 

Functions

CRGB software_gamma (const CRGB &in)
 
void setup ()
 
uint8_t wrap_8bit (int i)
 
void loop ()
 

Variables

CRGB leds_hd [NUM_LEDS] = {0}
 
CRGB leds [NUM_LEDS] = {0}
 

Macro Definition Documentation

◆ NUM_LEDS

#define NUM_LEDS   20

Definition at line 10 of file HD107.ino.

◆ STRIP_0_CLOCK_PIN

#define STRIP_0_CLOCK_PIN   2

Definition at line 14 of file HD107.ino.

◆ STRIP_0_DATA_PIN

#define STRIP_0_DATA_PIN   1

Definition at line 13 of file HD107.ino.

◆ STRIP_1_CLOCK_PIN

#define STRIP_1_CLOCK_PIN   4

Definition at line 16 of file HD107.ino.

◆ STRIP_1_DATA_PIN

#define STRIP_1_DATA_PIN   3

Definition at line 15 of file HD107.ino.

Function Documentation

◆ loop()

void loop ( )

Definition at line 50 of file HD107.ino.

◆ setup()

void setup ( )

Definition at line 34 of file HD107.ino.

◆ software_gamma()

CRGB software_gamma ( const CRGB & in)

Definition at line 25 of file HD107.ino.

◆ wrap_8bit()

uint8_t wrap_8bit ( int i)

Definition at line 41 of file HD107.ino.

Variable Documentation

◆ leds

CRGB leds[NUM_LEDS] = {0}

Definition at line 20 of file HD107.ino.

◆ leds_hd

CRGB leds_hd[NUM_LEDS] = {0}

Definition at line 19 of file HD107.ino.