Devices: Flip Flop - MatLomax/WireMod GitHub Wiki

Flip/Flop

Flip/Flop

Toggles a stored boolean value when the input toggles.

Pins

I/O Num Type
In 0 bool
Out 0 bool

Settings

Trigger

Value Description
Exit Only Trips a wire when the value changes from True to False
Enter Only Trips a wire when the value changes from False to True
Enter and Exit Both of the above

Notes

This device is the key to interacting with the vanilla wiring system. The device's function is perfectly suited to convert between WireMod's 'constant value' system and the vanilla 'electrical pulse' system.

See the Automatic Door Example for a simple use case using the default Enter and Exit trigger.