halui toggle button

More
1 year 7 months ago #324332 by bevins
Replied by bevins on topic halui toggle button
You can do it like this.

loadrt toggle count=5
addf toggle.0 servo-thread
setp toggle.0.debounce 50 

net flood-toggle toggle.0.in <= hm2_5i25.0.7i77.0.0.input-29
net flood-control toggle.0.out => hm2_5i25.0.7i77.0.0.output-02

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

More
1 year 7 months ago #324333 by tommylight
Replied by tommylight on topic halui toggle button

You can do it like this.

loadrt toggle count=5
addf toggle.0 servo-thread
setp toggle.0.debounce 50 

net flood-toggle toggle.0.in <= hm2_5i25.0.7i77.0.0.input-29
net flood-control toggle.0.out => hm2_5i25.0.7i77.0.0.output-02
If you need only one toggle, do not use "count=5" as that creates 5 toggles, so that would also need all the addf and setp and inputs and outputs in hal, for all 5, from 0 to 4.

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

Time to create page: 0.148 seconds
Powered by Kunena Forum