I've been fooling around with logic lately because scrap mechanic and it got me back into little big planet two (for testing and such) and i was wondering if there was a way to simplify this logic set.
It seems to be the simplest way to take a momentary button press to toggle. I've looked into logic flip flops and tested and stuff in LBP2 but they dont seem to work
Am i missing something or is this really the best way? (Best as in least number of gates because more gates means more time in scrap mechanic)
Tl; dr is pic related max efficiency?
>>41497
This is the traditional way to make a T-latch.
>>41500
Obviously, if you want to drive it from a button, you hold T high (which you can do simply by replacing the three-input gates with two-input gates), then use the button to drive CLK.
You might need to debounce the button depending on how it's constructed.
Sorry for being a bit thick but that's over my head. Could you maybe say it simpler? im turning to you because i can't figure out what Wikipedia and google in general is telling me...
>>41512
1 - Build this.
2 - Debounce* your switch, or it will toggle multiple times for each press. An RC debouncer would probably be what you'd want to use.
* http://www.ganssle.com/debouncing.htm
>>41523
that doesnt do anything
unless i did it wrong but i dont think i did
pic related