Page 1 of 2

Blinking led when engaged ?

PostPosted: Thu Oct 04, 2018 9:51 pm
by lalalandsynth
I am using an led as a Switch and an indicator , what I would like to do is that when its engaged it blinks , until turned off again. Any ideas ? I can make it blink with a ticker and toggle but obviously I dont want it to turn off and one with each blink so.. :P

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 10:56 am
by Spogg
Here’s my general purpose “LED”.

I’ve added a flash option which can be set in the properties view.
If you enable mouse it operates as a switch. If you deselect mouse it’s just an indicator.
You can make it elliptical/round or rectangular/square and the size and shape depends on the view area, and you can choose to have a border.

Hope this helps

Cheers

Spogg

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 12:19 pm
by tulamide
It's astounding that people take every effort to optimize their audio handling and even spend weeks or replace their dsp code with asm code just to get the cpu load down by 0.1%
...
...
...
...
...
but at the same time make intensive drawings without any optimizations, esp. dropping endlessly running ticker25 and even ticker100 (although graphics rarely reach 30 fps) everywhere throughout their schematic.


That's like tuning your electric car's engine to the max for that drag race, but then turning on air conditioning, lights, seat heater, radio, wiper and running the power window all the time (and wondering why you didn't reach the best time)
:mrgreen:

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 1:12 pm
by Spogg
I am SO ashamed; you have no idea how embarrassing this is. :oops:

I completely forgot about trigger counts. :oops: :oops:

I’ve amended the schematics so you only get a re-draw when the flash state actually changes. The counter only runs when the LED is ON and doesn’t run when OFF, or at all if Flash isn’t selected. And I’ve replaced the Tick 100s with Tick 25s.

Thanks for reminding me tulamide!

I’ve replaced the schematic in my post above.

Cheers

Spogg

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 1:39 pm
by martinvicanek
Spogg beat me on this one, hehe. Anyway, here is my Ruby based solution.

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 1:45 pm
by Spogg
martinvicanek wrote:Spogg beat me on this one, hehe. Anyway, here is my Ruby based solution.


A very elegant solution for bitmap based LEDs Martin.

It's not all about coming first :lol:

Cheers

Spogg

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 1:52 pm
by martinvicanek
Spogg wrote:It's not all about coming first :lol:
:mrgreen:

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 5:41 pm
by RJHollins
Years back, someone posted an important thread on 'TRIGGERS', and optimizations. [might have been Trog].

In the ToolBox is a Trigger Counter. A must use tool.

my 1/2 cent 8-)

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 7:13 pm
by lalalandsynth
Thanks, I use bitmaps so this one if perfect!

Re: Blinking led when engaged ?

PostPosted: Sat Oct 06, 2018 10:29 pm
by lalalandsynth
Rj Hollins, I read that at some point , didnt understand it then , i might now with a bit more experience.