Blinking led when engaged ?

For general discussion related FlowStone
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Blinking led when engaged ?

Post 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
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Blinking led when engaged ?

Post 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
Attachments
General purpose LED with flash option v2 .fsm
Much reduced trigger count!
(24.43 KiB) Downloaded 929 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Blinking led when engaged ?

Post 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:
"There lies the dog buried" (German saying translated literally)
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Blinking led when engaged ?

Post 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
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Blinking led when engaged ?

Post by martinvicanek »

Spogg beat me on this one, hehe. Anyway, here is my Ruby based solution.
Attachments
blinkingLEDswitch.fsm
(26.03 KiB) Downloaded 938 times
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Blinking led when engaged ?

Post 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
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Blinking led when engaged ?

Post by martinvicanek »

Spogg wrote:It's not all about coming first :lol:
:mrgreen:
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Blinking led when engaged ?

Post 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-)
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Blinking led when engaged ?

Post by lalalandsynth »

Thanks, I use bitmaps so this one if perfect!
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Blinking led when engaged ?

Post by lalalandsynth »

Rj Hollins, I read that at some point , didnt understand it then , i might now with a bit more experience.
Post Reply