In the scope of learning how to programm in C I've created this program that parses an inputstring representing different commands that can be sent to a segment board.
For a full run that parses +ACG-A~+F+A+G+B-A-F~+A
see output.txt
.
For compactness those two results are written side-by-side instead of one after the other.
Printing 'E'. Adding Segment 'A'
12345 12345
||||| |||||
+--+++++-- +--+++++--
| |
1 -| ### 1 -| ###
2 -| # 2 -|
3 -| # 3 -|
4 -| # 4 -|
5 -| ### 5 -|
6 -| # 6 -|
7 -| # 7 -|
8 -| # 8 -|
9 -| ### 9 -|
- Adding (via prefix
+
or just writing the letter) and removing (via prefix-
) 7 different segment pieces, labels A, ..., F inspired by ElectronicsTutorials. - Clearing / Resetting the board.
- Compilation and saving of information via a shell script.
- Print the steps one after the other, as a type of "animation", either waiting for a fixed time or for user input between each step.
- Allow user input into the console instead of just reading a string, either as a chain of steps or an individual command.
- Add support for multiple segment boards to be able to wrint entire words.
- There is absolutely no input validation on the input string.
- There should be a way to save the output to a different file, or just have it print.