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 scripts: bugfixes and improvements, add Live Fixture examples
Live Scripts - balls: use random16 instead of rand (crashed with div0) - F_scripts: add ledSize and shape - add F_Ring and F_XMasTree pio.ini: ELS 2.9.1.1 to 2.9.1.2 LedLayer: move set/getBitValue here LedModEffects: - addPixelsPre: add ledSize and shape - Live Fixture: add default externals (sin etc) and fixture.domap is false (otherwise runs twice restart) UserModLive - add cos - Kill switch only if still exists
- Loading branch information
1 parent
b08f59e
commit 720d21b
Showing
11 changed files
with
77 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//F_Ring.sc | ||
|
||
define PI 3.141592654 | ||
define radius 200 | ||
define ledCount 100 | ||
|
||
void main() | ||
{ | ||
addPixelsPre(radius * 2 / 10, radius * 2 / 10, 1, ledCount, 5, 0); | ||
for (int i=0; i<ledCount; i++) { | ||
int x = radius + sin(i/ledCount * 2 * PI) * radius; | ||
int y = radius + cos(i/ledCount * 2 * PI) * radius; | ||
printf("x:%d y:%d\n", x, y); | ||
addPixel(x,y,0); | ||
} | ||
addPixelsPost(); | ||
} |
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,17 @@ | ||
//F_XMasTree.sc | ||
|
||
define PI 3.141592654 | ||
define ledCount 100 | ||
|
||
void main() | ||
{ | ||
addPixelsPre(20, 20, 20, ledCount*20, 2, 0); | ||
for (int radius = 0; radius < 200; radius = radius + 10) { | ||
for (int i=0; i<radius; i++) { | ||
int x = radius + sin(i/radius * 2 * PI) * radius; | ||
int y = radius + cos(i/radius * 2 * PI) * radius; | ||
addPixel(x/2,y/2,radius); | ||
} | ||
} | ||
addPixelsPost(); | ||
} |
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
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