Skip to content

Daniel-Sinkin/Segment-Board

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segment-Board

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.

Examples: Printing Predefined Characters and adding segments

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 -|   

Implemented Functionality

  • 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.

Where could we go from here

  • 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.

Bugs and RFI (Room for Improvement)

  • 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.

Sources and References

About

Segment Board in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published