multipad with blinking last pressed button?? [solved]
Posted: 05 Apr 2017 19:06
OK, I'm just obsessed, and feeling dumb. Super thankful to Antonio for the script on the blinking singular pad- But now I'm hoping to do the same thing to a pad that has 1 column and say 4 rows where the last pressed is the one that is "blinking"
expressions declared-
flash=0
flashMaxLight=.75
lastTime=0
router=0
my flash script became- (flashprocess)
on frame-
if (!router) return;
flash = sin(time*4)*+.3+.3; // which gives more of a sine wave ramp up and down light brightness then a blink
the script (rstart) I kept the same as
on pad pressed-
lastTime = time;
router = !router;
flash = 0;
I know the script to light up the last pressed button is as follows-
expression declared-
s=
script (act)
on expression x rising
decl i, size = sizeof(x);
for (i=0;i<size;i++){
if (!x) s=0;
else s=1;
}
Where light= s
This lights up the last pressed but it's a static on. How in heck do I combine these two????
thanks in advance for any insight.
expressions declared-
flash=0
flashMaxLight=.75
lastTime=0
router=0
my flash script became- (flashprocess)
on frame-
if (!router) return;
flash = sin(time*4)*+.3+.3; // which gives more of a sine wave ramp up and down light brightness then a blink
the script (rstart) I kept the same as
on pad pressed-
lastTime = time;
router = !router;
flash = 0;
I know the script to light up the last pressed button is as follows-
expression declared-
s=
script (act)
on expression x rising
decl i, size = sizeof(x);
for (i=0;i<size;i++){
if (!x) s=0;
else s=1;
}
Where light= s
This lights up the last pressed but it's a static on. How in heck do I combine these two????
thanks in advance for any insight.