SetMomentaryBlink method with two colored LED

Post Reply
User avatar
seal58
Posts: 377
Joined: Fri Jul 12, 2019 5:28 pm
Location: Rostock, Germany
Contact:

SetMomentaryBlink method with two colored LED

Post by seal58 »

SetMomentaryBlink() is a very convenient method to visualize a trigger pulse with a LED. But used with a "Blue And Red" LED, only blue LED color is available. I know, there are other ways to solve the problem, but I'd like to know, if anybody knows a simple solution.
User avatar
Waverley Instruments
Posts: 147
Joined: Thu May 05, 2022 2:10 pm

Re: SetMomentaryBlink method with two colored LED

Post by Waverley Instruments »

FWIW, I tend to do all that stuff by setting boolean flags for each trigger in ProcessSample() then in the GUI update timer notification, picking those up, set the LED value as needed, then reset the flag(s).

So your "momentary blink" is the length of the update timer frequency - 50ms if memory serves.

-Rob
User avatar
seal58
Posts: 377
Joined: Fri Jul 12, 2019 5:28 pm
Location: Rostock, Germany
Contact:

Re: SetMomentaryBlink method with two colored LED

Post by seal58 »

Well, I did a similiar thing with a named timer.
Post Reply

Return to “Module Designer”