Physical button to control relay

More
3 years 11 months ago #256888 by jlm123
Yep - Both buttons should work.

I figured it out earlier today.   Threw a xor function on the buttons, then toggled the result.

Note that "piston" comes out of my postgui file.
Code:
net pistonbutton <= hm2_7i76e.0.7i76.0.0.input-27 net piston => xor2.1.in0 net pistonbutton => xor2.1.in1 net pistonresult <= xor2.1.out net pistonresult => toggle.0.in net pistonout toggle.0.out =>    hm2_7i76e.0.7i76.0.0.output-04
 
The following user(s) said Thank You: tommylight

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

Time to create page: 0.130 seconds
Powered by Kunena Forum