forked from ewowi/StarBase
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Live scripts: add rgb, inoise8, random8 and millis, slider3 function
move sc files to LiveScripts folder add noiseSL (not working yet) and hello scripts LedEffects.h - LiveScriptEffect.script2.onChange: change debug info - LiveScriptEffect: add Slider3 LedModEffects - fx.onChange: kill live script if other effect UserModLive - show every 10s - add rgb, inoise8, random8 and millis function - add slider3 - kill: only if __run_handle
- Loading branch information
1 parent
f129d92
commit 2a55683
Showing
12 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
int i; | ||
|
||
void setup() | ||
{ | ||
|
||
} | ||
|
||
|
||
void loop() { | ||
|
||
fadeToBlackBy(2); // Adjustable fade rate. | ||
// for (uint8_t y = 0; y < height; y++) { | ||
// for (uint8_t x = 0; x < width; x++) { | ||
//sCFP(y*panel_width+x,i, 255); | ||
CRGB gg = rgb(slider1,0,slider3); | ||
//CRGB gg = hsv(beatSin8(i, 0, 255),255,255); | ||
//CRGB gg = hsv(i,255,beatSin8(i, 0, 255)); | ||
//sPC(y*panel_width+x, gg); | ||
sPC(i, gg); | ||
i= i + 1; | ||
if ( i == width * height) { | ||
i =0; | ||
} | ||
// } | ||
//} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
void setup() | ||
{ | ||
} | ||
|
||
void loop() { | ||
for (int y = 0; y < width; y++) { | ||
for (int x = 0; x < height; x++) { | ||
uint8_t pixelHue8 = inoise8(x * slider1, y * slider1, millis() / (16 - slider2)); | ||
// leds.setPixelColor(leds.XY(x, y), ColorFromPalette(leds.palette, pixelHue8)); | ||
//leds.setPixelColorPal(leds.XY(x, y), pixelHue8); | ||
sCFP(y*panel_width+x, pixelHue8, 255); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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