Last active
January 10, 2018 16:05
-
-
Save kasperkamperman/5df023b43c93112e9cef to your computer and use it in GitHub Desktop.
Gamme curve compare with FastLED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gamma table HexaWS2811 placed at the bottom of the code | |
// dim_curve placed at the bottom of the code | |
extern const uint8_t gammaTable[]; | |
extern const uint8_t dim_curve[]; | |
#include "FastLED.h" | |
#define NUM_LEDS 5 | |
#define DATA_PIN 11 | |
CRGB leds[NUM_LEDS]; | |
// debug duration | |
unsigned long t1; // for measuring purposes | |
unsigned long t2; // for measuring purposes | |
unsigned long t3 = 0; // for measuring purposes | |
int ditherFrame = 0; | |
CRGB pixel; | |
// fadeing | |
unsigned long previousMillis = 0; | |
unsigned long currentMillis = 0; | |
const int interval = 1000/5; | |
int fadeVal = 255; | |
int fadeSpeed = 1; | |
uint8_t fadeValByte = 0; | |
uint8_t dimVal = 0; | |
uint8_t linDimVal = 0; | |
uint8_t doubleLinDim = 0; | |
void setup() | |
{ //FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip ); | |
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS); | |
FastLED.setBrightness(255); | |
FastLED.setDither(0); | |
Serial.begin(57600); | |
} | |
void loop() { | |
currentMillis = millis(); | |
setTime(); | |
if (currentMillis - previousMillis >= interval == true ) { | |
fadeVal = fadeVal + fadeSpeed; // change fadeVal by speed | |
fadeVal = constrain(fadeVal, 0, 255); // keep fadeVal between 0 and 255 | |
if(fadeVal==255 || fadeVal==0) // change from up>down or down-up (negative/positive) | |
{ fadeSpeed = -fadeSpeed; | |
} | |
// dim8_raw is visible at fadeVal = 23 | |
// dim8_lin is visible at fadeVal = 3 | |
// dim8_lin plus dim8_raw is visible at fadeVal = 28 | |
// hexagamma is visible at fadeVal = 35 | |
//fadeVal = 35; | |
previousMillis = currentMillis; | |
} | |
FastLED.clear(); | |
fadeValByte = (uint8_t) fadeVal; // typecast to uint8_t | |
linDimVal = dim8_lin(fadeValByte); // fadeVal with linDimVal curve | |
dimVal = dim8_raw(fadeValByte); // fadeVal with dim8_raw | |
doubleLinDim = dim8_lin(dimVal); // fadeVal with dim8_raw in dim8_lin | |
for (int i=0; i <NUM_LEDS; i++) | |
{ | |
if(i%5 == 0) pixel.g = pgm_read_byte_near(gammaTable + (ditherFrame<<8) + fadeValByte); | |
else if(i%5 == 1) pixel.g = linDimVal; | |
else if(i%5 == 2) pixel.g = dimVal; | |
else if(i%5 == 3) pixel.g = doubleLinDim; | |
else pixel.g = dim_curve[fadeValByte]; | |
leds[i] = pixel; | |
} | |
FastLED.show(); | |
ditherFrame++; | |
if(ditherFrame>15) ditherFrame = 0; | |
//printTime(); | |
} | |
void setTime() | |
{ t1 = micros(); | |
} | |
void printTime() | |
{ | |
t2 = micros()-t1; | |
if(t2>t3) t3 = t2; | |
Serial.print(F("update time: ")); | |
Serial.print(t3); | |
Serial.print(" "); | |
Serial.println(t2); | |
} | |
const uint8_t PROGMEM gammaTable[]={ | |
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x5,0x5,0x5,0x5,0x5,0x5,0x5,0x6,0x6,0x6,0x6,0x6,0x6,0x6,0x7,0x7,0x7,0x7,0x7,0x8,0x8,0x8,0x8,0x8,0x9,0x9,0x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,0x1b,0x1c,0x1d,0x1d,0x1e,0x1f,0x1f,0x20,0x21,0x22,0x22,0x23,0x24,0x25,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x39,0x3a,0x3b,0x3d,0x3e,0x3f,0x41,0x42,0x44,0x45,0x47,0x48,0x4a,0x4b,0x4d,0x4f,0x50,0x52,0x54,0x56,0x58,0x5a,0x5c,0x5e,0x60,0x62,0x64,0x66,0x68,0x6b,0x6d,0x6f,0x72,0x74,0x77,0x7a,0x7c,0x7f,0x82,0x85,0x88,0x8b,0x8e,0x91,0x94,0x97,0x9a,0x9e,0xa1,0xa5,0xa8,0xac,0xb0,0xb4,0xb8,0xbc,0xc0,0xc4,0xc8,0xcd,0xd1,0xd6,0xdb,0xdf,0xe4,0xe9,0xee,0xf4,0xf9 | |
}; | |
const byte dim_curve[] = { | |
0, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, | |
3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, | |
4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, | |
6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, | |
8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, | |
11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, | |
15, 15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, | |
20, 20, 21, 21, 22, 22, 22, 23, 23, 24, 24, 25, 25, 25, 26, 26, | |
27, 27, 28, 28, 29, 29, 30, 30, 31, 32, 32, 33, 33, 34, 35, 35, | |
36, 36, 37, 38, 38, 39, 40, 40, 41, 42, 43, 43, 44, 45, 46, 47, | |
48, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, | |
63, 64, 65, 66, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 81, 82, | |
83, 85, 86, 88, 90, 91, 93, 94, 96, 98, 99, 101, 103, 105, 107, 109, | |
110, 112, 114, 116, 118, 121, 123, 125, 127, 129, 132, 134, 136, 139, 141, 144, | |
146, 149, 151, 154, 157, 159, 162, 165, 168, 171, 174, 177, 180, 183, 186, 190, | |
193, 196, 200, 203, 207, 211, 214, 218, 222, 226, 230, 234, 238, 242, 248, 255, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment