I want to send a signal but have it break when it receives a pulse or a boolean. Ideally it would stay broken unless you reset the arduino or the program.
maybe try using a flip-flop?
Yeah I guess that would work if I used a gate to lock the flip flop into place and stop it from flip flopping. Actually I’m not sure if that would work because I dont think i can string a button and a gate to the same flip flop node
how are you going to trigger this device (flip-flop or any one of the gates)?
Do you have a sketch / schematic of what you are trying to do?
just feed your latch input to the “reset” pin and it won’t set again (gate enabled) until the next reboot
I want to turn a led on and off at start up just by pressing a button but after holding the the button down for 2 seconds I go into adjustable brightness mode for the led and then when I let go of the button the brightness level stays at that and it will stay on that when I turn the light on and off. I got everything figured out except for how to turn initiate from start up mode to adjust mode. Basically I need to break the connection to start up mode forever when I enter adjust mode
This may be a useful library for you to use:
This sounds very close to what I did here: Led options help
Quick button press turns on/off. 2 second press puts it in program mode to make it brighter/dimmer, then goes back to on/off mode. I used debounce node to determine when button has been pressed for 2 seconds.
You know what that might actually work. Right now I’m using a counter node and the problem is that the value starts at 0. With this I might be able to start the value off at maximum if I map range it.
If you want to stick with the counter node, you could subtract the counter value from 1 to get your “real” value. Counter will initialize to 0, 1-0=1 for your initial value. To make the “real” value bigger, dec the counter; to make it smaller, incr the counter. You still need to keep the counter in the 0-1 range…I felt that was easier using buffer & clip instead of counter (which would probably need gates on the incr/dec pins to avoid going beyond desired range).
Cool. Thanks for the advice