thanks all. With about 50 functions, I can't see myself typing in a whole lot more code. Seems to me when I was using PICBASIC PRO with Pics, if I wanted to print the parameter name, eg Green, I would just say "print Green" and if I wanted to print the value of Green, I would write "print (Green)" and it would print the value (or the "contents of), in this case 04. In the debugger for that program Green would display 04.
To simplify my first entry: (cause it was too much info)
I defined the parameter: const byte Green = 0x04 //Green bus, pin 10 on UNO //0000 0100
I call the function: BigEx(500, Green;
The first line of function is: void BigEx(int del, byte color)
I print "del" and it gives me 500. I print "Green" and it prints 04. I want to print "Green", that is the equivalent to "color", not the value.
All this is to help with troubleshooting, it's not a major requirement.
I have 28 arrays as it is...and I'm getting warnings about running out of memory on the UNO.
For interest sake I show here all the functions (BibEx is the second one) Any function with a color to be passed is one I want to print the color name for.
// RotAllColor(50, 1); //pass delay and reps
BigEx(500, Green); //displays "x" using 21, 25, 23, 27
BigPlus(500, Red);//displays BigPlus sign using 20, 24, 22, 26
/* BlinkExBigPlus(4);//blink bigex then BigPlus for #reps
Repel(10, Magenta);//use with Pulsar
Pulsar(White);//start at center shimmer to 4th LED
Nova(5, White); //5 del about right, no attempt at slowing down at ends
BlackHole(10, Red); //start at ends, implode
NewGalaxy(1000);//Blackhole followed by Nova, delay after
RotOneColor(50, Green, 2);//pass delay,color,reps
StaryNight(4000);//all lights flickering for number of millis
BlendAll(10000);//all pixels, all colors blending into next one red-pink for 10 seconds
DendriteRot(4); // 4 reps kinda cool having one follow the other (rot and static)
DendriteStatic(4, HUE_PINK); //4 reps
Grow(40, HUE_ORANGE);//pass color in FastLed format, start at center, rotate CW each arm light (no dendrites)
Grow(40, HUE_PINK);//del=5 Nova, del=50 slow grow one level at a time.
Grow(40, HUE_AQUA);
RotThreeColor(50, 2);//pass delay,reps
Shrink(10, HUE_RED);
FadeColor(40, HUE_PINK);//Fade all pixels in passed color with FastLed. fade from dim to full brightness
FadeColor(40, HUE_GREEN);
RainbowRotate(100, 1); //delay 0.1sec, once only
// Breathe (HUE_RED);
// Breathe (HUE_BLUE);
// Breathe (HUE_ORANGE);
// RedGreenRotate(150);//rotates all arms red, then green, then red...
// Psycho(5000);//center and dendrites blue and red disturbing (epileptic) fashion 5sec runtime
// Mishmash(4000, Red, Blue); //Blended colors random on arms and dendrites, developed from DendriteRot, 5 sec time
Mishmash(4000, Red, Green);
// Mishmash(4000, Blue, Green);
// ZoomRedGreen(60);
// Flower(0, 12);//delay 100=Flower, 10=Starburst
// DendriteBlink(4);//4 reps,red dendrites blinking, center 8 magenta "fairly steady"
// RedGreenRotateAcc(2);//rotate red and green alternately, accelerating each pass
ColorPerPixel(0, 12);//lights pixel different color as it progresses outward. 12 pixels=8 colors (4 repeat)
ColorPerPixel(16, 28); //dev 21
ColorPerPixel(32,44);//dev 22
ColorPerPixel(48, 60);//dev 23
ColorPerPixel(64, 76);//dev 24
ColorPerPixel(80, 92);//dev 25
ColorPerPixel(96, 108);//dev 26
ColorPerPixel(112, 124);//dev 27
BigV(16, 28); //lights arm 27 and 21, individual pixels, individual (8)colors
BigCaret(48, 60); //lights arm 23 and 25, individual pixels, individual (8)colors
Starburst(0, 12,4);//lopix,hipix add 16 to each to get another arm delay 100=Flower, 10=Starburst
RotOneColAcc( HUE_RED, 6000);//6 secs is 2 full rotations works
RotOneColAcc(HUE_GREEN, 6000);
// PixChaserVert();
//PixChaserHoriz();
//ExecTimer();//uncomment if timing entire loop
// Testing(32, 44);
*/