forked from ewowi/StarBase
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Live Script latest updates: paintbrush, ripples, sphere support 3D
Live scripts: update to latest version - float CR = -0.94299 is possible - t+=speed is possible - ternary op update - cube202020 updates pio.ini - latest ESP Live Script - wrover default non virtual driver LedEffects - paintbrush effect: support 3D - ripples and spheremove effect: time interval and distance float LedLayer - add drawLine3D (WIP) UserModLive - show errors in UI scripts table (WIP)
- Loading branch information
Showing
13 changed files
with
201 additions
and
81 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,5 @@ void loop() { | |
sPC(y*width+x, hsv(2*t - radius*mapp, 255, intensity)); | ||
} | ||
} | ||
t=t+speed; | ||
t += speed; | ||
} |
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 |
---|---|---|
@@ -1,27 +1,22 @@ | ||
//F_Cube202020.sc | ||
|
||
define width 16 | ||
define height 16 | ||
define depth 48 | ||
define width 20 | ||
define height 20 | ||
define depth 6 | ||
|
||
define panelWidth 16 | ||
define panelHeight 16 | ||
|
||
int pins[6] = {9,10,12,8,18,17}; //for esp32-S3 //for virtual driver, max 6 pins supported atm | ||
int pins[6] = {32,33,25,26,27,14}; //STARLIGHT_CLOCKLESS_LED_DRIVER on esp32-wrover (PSRAM) | ||
//int pins[6] = {9,10,12,8,18,17}; //for esp32-S3 | ||
|
||
void main() | ||
{ | ||
setLedSize(2); //smaller leds (default 5) | ||
|
||
for (int z=0; z<depth;z++) { | ||
|
||
for (int x=0; x<panelWidth;x++) { | ||
for (int y=panelHeight - 1; y>=0; y--) { | ||
int y2 = y; if (x%2 == 0) {y2 = panelHeight - 1 - y;} //serpentine | ||
addPixel(x, y2, z); | ||
} | ||
} | ||
for (int x=0; x<width;x++) | ||
for (int y=0; y<height;y++) | ||
addPixel(x, y, z); | ||
|
||
addPin(pins[z/8]); //every 8 panels one pin on the esp32 | ||
addPin(pins[z]); //every 8 panels one pin on the esp32 | ||
} | ||
} |
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
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
Oops, something went wrong.