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
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Blinking led when engaged ?
16 posts
• Page 1 of 2 • 1, 2
Blinking led when engaged ?
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..
-
lalalandsynth - Posts: 600
- Joined: Sat Oct 01, 2016 12:48 pm
Re: Blinking led when engaged ?
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
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 850 times
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Blinking led when engaged ?
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)
...
...
...
...
...
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)
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Blinking led when engaged ?
I am SO ashamed; you have no idea how embarrassing this is.
I completely forgot about trigger counts.
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
I completely forgot about trigger counts.
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
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Blinking led when engaged ?
Spogg beat me on this one, hehe. Anyway, here is my Ruby based solution.
- Attachments
-
- blinkingLEDswitch.fsm
- (26.03 KiB) Downloaded 854 times
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Blinking led when engaged ?
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
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Blinking led when engaged ?
Spogg wrote:It's not all about coming first
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Blinking led when engaged ?
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
In the ToolBox is a Trigger Counter. A must use tool.
my 1/2 cent
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Blinking led when engaged ?
Thanks, I use bitmaps so this one if perfect!
-
lalalandsynth - Posts: 600
- Joined: Sat Oct 01, 2016 12:48 pm
Re: Blinking led when engaged ?
Rj Hollins, I read that at some point , didnt understand it then , i might now with a bit more experience.
-
lalalandsynth - Posts: 600
- Joined: Sat Oct 01, 2016 12:48 pm
16 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 74 guests