Skip to content

Commit

Permalink
Add single decider flip-flop update
Browse files Browse the repository at this point in the history
  • Loading branch information
pindab0ter committed May 10, 2024
1 parent 48c5ad0 commit 4426b5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ our offshore pump, and voilà! We have successfully buffered our signal!

![Generator is on when it should be!](generator-on-when-it-should-be.png "The coal generator is on, even though there is more than 30% charge in the accumulators.")

---

**Update (2024-05-10):**

When reading through the
[Circuit network cookbook](https://wiki.factorio.com/Tutorial:Circuit_network_cookbook#Latches), I
found out that you can make a flip-flop using just one decider combinator. By running a signal wire
from the output back to the input, you can create a flip-flop that remembers its state.

![Single decider flip-flop](single-decider-flip-flop.png "A flip-flop implemented using a single decider combinator.")

The only downside of this approach is that the output signal (in this case `S`) is always the same
as the input signal, rather than allowing you to choose any signal you want.

[^signals]:
A nice overview of which devices send and/or receive which signals can be found
[here](https://wiki.factorio.com/Circuit_network#Devices).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4426b5c

Please sign in to comment.