7 Segment Digits


Adds 7 segment digits, for displaying values from a connected circuit network. Orignal Code taken from the Nixie Tube mod by justarandomgeek and GopherAtl. Mod is provided as it is. If there are any bugs, feel free let me know.

Utilities
30 days ago
1.1 - 2.0
3.75K
Circuit network

i Support for the dot?

1 year, 7 months ago

Hi, could you please add support for lighting up the dot?

One idea on how to implement this:
- Check the digit input using the dot signal
- using the dot signal specifically - so you wouldn't need to modify the options tab
- the signal value would contain the binary encoded position of the dots, e.g.:

Example 1

Input: (Stone: 2024, Dot: 5)

Dot = 5 = 0101

Output = 2.024.

Example 2

Input: (Stone: 3, Dot: 7)

Dot = 0111

Output: ___3.

1 year, 3 months ago

why binary encode the position of the dot? you could just have the valur of [DOT] be the distance from the right (with the caveat that you can only have one decimal)

[DOT] = 0, [STONE] = 1000, display = [1000]
[DOT] = 1, [STONE] = 1000, display = [1000.]
[DOT] = 2, [STONE] = 1000, display = [100.0]
[DOT] = 3, [STONE] = 1000, display = [10.00]

etc...

New response