FastLED 3.9.15
Loading...
Searching...
No Matches

◆ NoiseExample5()

void NoiseExample5 ( )

Definition at line 1115 of file funky.cpp.

1115 {
1117 ReadAudio();
1118 FillNoise(100, 100, 100, 300);
1119
1120 for (int i = 0; i < kMatrixWidth; i++) {
1121 for (int j = 0; j < left[1] / 64; j++) {
1122 leds[XY(i, 15 - j)] = CRGB(0, noise[i][left[1] / 64 - j], 0);
1123 }
1124 }
1125
1126 for (int i = 0; i < kMatrixWidth; i++) {
1127 for (int j = 0; j < left[5] / 64; j++) {
1128 leds[XY(j, i)] += CRGB(noise[i][left[5] / 64 - j], 0, 0);
1129 }
1130 }
1131 ShowFrame();
1132 ClearAll();
1133}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:88
#define kMatrixWidth
int XY(int x, int y)
Definition funky.cpp:190
void ReadAudio()
Definition funky.cpp:270
void ClearAll()
Definition funky.cpp:237
int left[7]
Definition funky.cpp:78
void ShowFrame()
Definition funky.cpp:993
void FillNoise(uint16_t x, uint16_t y, uint16_t z, uint16_t scale)
Definition funky.cpp:1040
void MoveOscillators()
Definition funky.cpp:248
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:55

References ClearAll(), FillNoise(), kMatrixWidth, leds, left, MoveOscillators(), noise, ReadAudio(), ShowFrame(), and XY().

+ Here is the call graph for this function: