hi, the code works great for me, but I would like it to turn off immediately when D6 is true, but now it turns off as well as when it starts, fade slowly, I’m interested in how to do it…
Hi! The faded node works for both fading and rising. You can use the animation-unit node, which is more flexible and has direct transitions to 1 and 0.
I struggle for hours, but I can’t manage to make it turn on slowly and the D6 turns it off immediately, even though that NOD is also new to me…
Describe how your code should work, then I’ll try to help you)
when D3 or D4 is active and D6 is not, the D5 LED lights up immediately and that’s ok, and if I don’t light the D6 pin, the D5 LED will turn off slowly, that’s why it’s on the “if else” node on the “F” “fade” node. But if the light is on D5 while it is on, I would like that when D6 becomes active, the D5 LED should turn off immediately without fading. And otherwise, fade in and fade off should be when D6 is turned off.
I hope it’s clear, it can be an example on a regular led and button or a digital input, some simplified version for an example if you know, thanks in advance.
Tried adding another if-else and activating it via D6. On the real “0”. Why use delay instead of debounce ?
I honestly don’t know how to fit in the second “if else” and how to connect it…
And what would you get better with a “debounce” node?
If you want to keep everything as it is, then just add another if-else between led d5 and if-else. Apply “0” to its T and connect F to the output of the previous if-else. As for feeding the signal from d6 to our new if-else, do it via a “flip-flop” node. When dialing, we send a signal from d6 to “set”, a signal to “reset” you can send either from “any” of d3 and d4, or again from d6, but with a time delay (at the same time, use the ready output of the new node delays instead of ACT )
for example, in this example, when D3 is active it turns on immediately and when it turns off slowly, but I need that if D4 is active within, say, 10 seconds, it turns on immediately without slow turning off. How can I do that?
Now I don’t have a computer nearby to make a diagram for you. I will try to create an example for you tomorrow)
example11.xodball (11.0 KB)
This is a modified version of the first photo. I hope you will understand what has been done. Instead of configurable nodes, put your own buttons and LEDs. Good luck!