So, 1st off, it would be way easier if comparators could have multiple outputs instead of only one, but we are stuck with that for a moment, so i rolled with it
I will post another one, much smaller when the devs implements the multiple outputs things (edit: Dr.Walrus have a design that works just like that and is very compact, check his comment on this post for more)
so here is a new link to download the world, i'll change the other too https://www.dropbox.com/s/e6jw7ueyxkkki ... y.zip?dl=0
also, the world has change a little, here is the prototype i have in my world, he have 5 digits and, because i had no place to put more, little lamps that will lit up when the amount of things in the chest on the rail station is too much for the display to handle(the max he can show is 99 999, so when its 100 000, he will lit 1 light and 00 000)
Ok, so i wanted to build a digital display to show how many things i got in a box,because why the hell not, so i made this
Cool, huh? So right now its showing how much green circuit there is in the storage chest near the roboport, on the bottom left of the image. it goes to the bottom right arithmetic combinator, who just add up any signal going in his input and outputting the result in the F channel, and then a ton of things happen, so ill be explaining them clearly
there, one-number display, that will be easier to explain
I wanted to make one with 13 points, but it was way too much, so i simplifie it to just have 7 segments of 3 lights each. its really simple, each of them have a number, and if the chanel of that number is equals to one, it lights on. all the lights are connected to the same red wire network who will be our final output network, as well as alternated network
the modulo combinator
In case you didnt know, modulo, also writen %, is an arithmetic operation who gets therest of a divion. for example, 14%5 = 4, because 14=5*2 +4. its very useful because you can easily get the last digit on a number by doing %10. And thats why i want it to be an operation available in the combinators, so the 4 combinators circuit can be compacted in 1.
so, on the circuit itself! the 1st one just take anything and output it as the A signal on the inputs of 2 and 4. the 2nd one divide A by 10 and outputs it as B the input of 3, the 3rd one multiply B by 10 and outputs the result as B on the input of 4, and the 4 one subtract B to A and outputs A, who become the inputs for the display
for example, you inputs 235 in the circuit, the 1st one outputs A=235, the 2nd one have A=235 as inputs and outputs B=23, the 3rd one inputs B=23 and outputs B=230, and the 4th one take A=235 and B=230 as inputs and outputs A=235-230 = 5, the number we want! hurray!
the display controller
Now here comes the complicated one. Because of technical limitation, i had to make a lil controller for each segment lighed up by every number possible. here is an example
So here is the controller for one number. each controller are linked with each other by the inputs of the number detector, and by the outputs of the segments controller. there is 10 lines of controllers for each display, one for each number from 0 to 9.
in this design, the 2 constant combinators are tottaly not obligatory, they are there just to make life easy.
so, this line is for the number 9. the constant combinator in the "number detector" part outputs a yellow signal of value 9, for obvious reasons. it outputs into the decider right next to it using the red wire controller, just to make the signal unique from other lines, decider which will outputs A=1 if A=yellow signal(in this case if A=9), then it outputs to every other decider on the line the same A value. the second constant combinator outputs 2 signal, who is the same for every line on any display controller: the green signal as 1, and the red signal as 2. in the next combinators you have to make seven deciders, one for every segment, who outputs their number signal as 1(for the 3rd segment, it will outputs the signal 3=1).the tests are simple: if you want a segment to be on, you test if A=green signal, and if you never want a signal to be on, you test A=red signal. because A is equals to 0 or 1, the test A=red will never be true, and the test with A=green will be true if the number you want to display is selected. Easy. As this line is for the number 9, all the deciders are set to the test A=green exept for the '4' one, who need to be set as A=red
So, to finish, wiring: the 4th combinator's output of the modulo module is connected to the input of one of the display controller, each display controller's inputs are linked with each other;in each line of the display controller, the outputs of the 1st decider is linked to every inputs of the other decider(in the segment controller) using the green wire network, and every decider in the segment controller will have his outputs linked to one red wire network, and each line of the display controller will be connected to the same red wire network, who is also linked to the display itself. and done
also, each number display are connected to each other before the modulo by a simple circuit: the raw inputs (the number you want to display) is directly linked to the display on the right and to a arithmetic combinator, who takes the signal, divide it by 10 and outputs the result in the next display and on another arithmetic combinator who does the same thing, up to the last digit
So, voila, if you have any question feel free to ask, here is a link to download the map where i build it(its on the top right corner) https://www.dropbox.com/s/e6jw7ueyxkkki ... y.zip?dl=0