10#if defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtinyxy4__)
17const uint8_t kMatrixWidth = 16;
18const uint8_t kMatrixHeight = 16;
20#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
23#define kMatrixSerpentineLayout true
26CRGB leds[kMatrixWidth * kMatrixHeight];
29uint32_t x,y,v_time,hue_time,hxy;
55 fill_2dnoise16(leds, kMatrixWidth, kMatrixHeight, kMatrixSerpentineLayout,
56 octaves,x,xscale,y,yscale,v_time,
57 hue_octaves,hxy,hue_scale,hxy,hue_scale,hue_time,
false);
65 hue_time += hue_speed;
76 Serial.println(
"resetting!");
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void setBrightness(uint8_t scale)
Set the global brightness scaling.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
void fill_2dnoise16(CRGB *leds, int width, int height, bool serpentine, uint8_t octaves, uint32_t x, int xscale, uint32_t y, int yscale, uint32_t time, uint8_t hue_octaves, uint16_t hue_x, int hue_xscale, uint16_t hue_y, uint16_t hue_yscale, uint16_t hue_time, bool blend, uint16_t hue_shift)
Fill an LED matrix with random colors, using 16-bit noise.
LIB8STATIC void random16_add_entropy(uint16_t entropy)
Add entropy into the random number generator.
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
LIB8STATIC void random16_set_seed(uint16_t seed)
Set the 16-bit seed used for the random number generator.
Representation of an RGB pixel (Red, Green, Blue)