Tick button to blue one sample true

Post any examples or modules that you want to share here
Post Reply
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Tick button to blue one sample true

Post by Tepeix »

Hi,

Here's a way to make the tick button fire only one sample in blue or white.

Note that there's another solution here : viewtopic.php?f=2&t=90847&p=227495#p227495

I will try to optimize with a special hop.

(Include also a little counter prototype)
Attachments
Tick to Blue (or White).fsm
(18.98 KiB) Downloaded 741 times
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Tick button to blue one sample true

Post by Tepeix »

While meditating, another idea comes in my mind.

Now each tick make alternate a counter from 1 to 0.
The code keep a temp variable of the input and compare.

It's a little simpler and could be use more easily.
Attachments
tick to blue another way.fsm
(3.91 KiB) Downloaded 711 times
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Tick button to blue one sample true

Post by Tepeix »

Thanks to Spogg ! We have some simplification on the counter that become a flipper !)
I did not see that in my meditation ;)
Attachments
tick to blue spogg's .fsm
(25.64 KiB) Downloaded 723 times
Post Reply