Circuit novice here. I'm trying to create what would basically be a T-flipflop in Minecraft terms.
I want a circuit that a) turns on when the stock of a given resource is below 2000, and then b) turns off when it's above 4000. However, if the current amount is between 2000 and 4000, the circuit state shouldn't change (so even if the stock drops below 4000, restocking doesn't trigger until 2000).
I know how to read the current stock, and I've figured out the "easy version" where it just turns on below 4000/off above 4000, but I'm struggling a bit with the more complex latch. Haven't really used circuits before at all despite hundreds of hours with the game, because I'm lame. 😛
Modded playthrough (Krastorio) but I don't think that affects circuit logic.