Fans to turn on when starting program

More
20 Feb 2022 17:27 - 20 Feb 2022 17:28 #235400 by remon_v
Oke, so I'm adding a Xbox controller and I would like to assign a button 'B' to also be able to switch the fans on.
I've replace the 'or2' command by the  'logic' command.

Everything still works as expected, only when I press button B it triggers the fans, but I have to hold it down. When I release it, it turns off again.

So I'm guessing I need another toggle output or so?

I've attached my hal file... thanks in advance!
Attachments:
Last edit: 20 Feb 2022 17:28 by remon_v.

Please Log in or Create an account to join the conversation.

More
24 Feb 2022 08:05 - 24 Feb 2022 08:06 #235681 by remon_v
No one can HALp me? 
Last edit: 24 Feb 2022 08:06 by remon_v.

Please Log in or Create an account to join the conversation.

More
24 Feb 2022 10:35 #235683 by MaHa
I would try this, use another or2 for the buttons, that or2 out going to toggle, see the left side. It is not tested, as i am pretty busy at the moment.


 


 
Attachments:
The following user(s) said Thank You: tommylight, remon_v

Please Log in or Create an account to join the conversation.

More
24 Feb 2022 18:00 #235733 by remon_v
It works! Many many thanks (again)!

Before asking I tried a few things, also to add or2.1, but what I didn't know is I had to add ' count=2' after the loadrt or2...

Please Log in or Create an account to join the conversation.

Time to create page: 0.166 seconds
Powered by Kunena Forum