Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Blinking led when engaged ?

For general discussion related FlowStone

Blinking led when engaged ?

Postby lalalandsynth » Thu Oct 04, 2018 9:51 pm

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

Re: Blinking led when engaged ?

Postby Spogg » Sat Oct 06, 2018 10:56 am

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

Re: Blinking led when engaged ?

Postby tulamide » Sat Oct 06, 2018 12:19 pm

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)
tulamide
 
Posts: 2687
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Blinking led when engaged ?

Postby Spogg » Sat Oct 06, 2018 1:12 pm

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
Spogg
 
Posts: 3323
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Blinking led when engaged ?

Postby martinvicanek » Sat Oct 06, 2018 1:39 pm

Spogg beat me on this one, hehe. Anyway, here is my Ruby based solution.
Attachments
blinkingLEDswitch.fsm
(26.03 KiB) Downloaded 817 times
User avatar
martinvicanek
 
Posts: 1318
Joined: Sat Jun 22, 2013 8:28 pm

Re: Blinking led when engaged ?

Postby Spogg » Sat Oct 06, 2018 1:45 pm

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
Spogg
 
Posts: 3323
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Blinking led when engaged ?

Postby martinvicanek » Sat Oct 06, 2018 1:52 pm

Spogg wrote:It's not all about coming first :lol:
:mrgreen:
User avatar
martinvicanek
 
Posts: 1318
Joined: Sat Jun 22, 2013 8:28 pm

Re: Blinking led when engaged ?

Postby RJHollins » Sat Oct 06, 2018 5:41 pm

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-)
RJHollins
 
Posts: 1568
Joined: Thu Mar 08, 2012 7:58 pm

Re: Blinking led when engaged ?

Postby lalalandsynth » Sat Oct 06, 2018 7:13 pm

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 ?

Postby lalalandsynth » Sat Oct 06, 2018 10:29 pm

Rj Hollins, I read that at some point , didnt understand it then , i might now with a bit more experience.
User avatar
lalalandsynth
 
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Next

Return to General

Who is online

Users browsing this forum: No registered users and 48 guests