hmm...have it sort of working with this in the foreground script:
if(Datavalue > 0) { //no short circuit evaluation using &&, causes divide by zero e.g. if(DataValue>0 && strobe(60/DataValue)
Visible = strobe(60/DataValue);
}
if(Visible) {
DrawDot(CenterX, CenterY, MainColor, Space / 2);
} else {
DrawDot(CenterX, CenterY, BackColor, Space / 2);
}
But it looks like Strobe() doesn't like a parameter that varies in time; it appears to get confused on whether it should be 1 or 0 once the input parameter changes.
Here's a sample video where the strobe does no really reflect the frequency of the input signal
https://www.youtube.com/watch?v=Z7yB...ature=youtu.be
Thoughts? (other than calculating my own period counter to track visibility)