/Figures-project

✨ Console output of different figures with TUI.

Primary LanguageCGNU General Public License v3.0GPL-3.0

Figures

📥 Installation instructions

Required software:

  1. RPi files ( RPi)

  2. PuTTY ( MOC)

Optional software changes

All the customization of the drawing area (FIG_AREA) can be done in the output.h file. THe file's description is self-explanatory. Customization of other fields can be done in the display.c file.

🛠 Configuration instructions

Required equipment:

  1. Raspberry Pi, Model 3B (further: RPi)

  2. "RJ45" Ethernet cable (further: e-cable)

  3. Power supply for the RPi (one of the following):

  4. Main operating computer (PC, laptop, etc.; further: MOC)

Required equipment set-up:

  1. Connect the RPi to the Internet using the e-cable

  2. Connect the RPi to the power supply

️⚙️ Operating instructions

  1. Launch the RPi

  2. Connect to the RPi via PuTTY

  3. Make the object files and the sound.a application by running the following command:

~$ make
  1. Run the application by entering the following command:
~$ ./figures.a
  1. Enter the number of the figure to be drawn

Initial state

  1. The program will be showing the figure during some period of time and then it will go back to the initial state, asking for further instructions. The period of time depends on the RES_DELAY constant value (default: 3 seconds) in the output.h file.

Active state

  1. To quit the program, enter anything except numbers defined by constants in the output.h file:
    • RECTANGLE (default: 1)
    • SQUARE (default: 2)
    • TRIANGLE (default: 3)
    • CIRCLE (default: 4)
    • HLINE (default: 5)
    • XLINES (default: 6)

🗃 File manifest

List:

  • RPi (5):

    • .c files (3):
      • display.c
      • main.c
      • makeFigure.c
    • .h files (1):
      • comm.h
    • Other files (1):
      • makefile
  • Other (4):

    • README.md
    • LICENCE
    • TUI_active_state.png
    • TUI_initial_state.png

Total: 9 files

⚖️ Copyright and licensing information

This project is licensed under the GNU General Public License. See the LICENSE file for details

👏 Credits and acknowledgments

Authors:

Used resources: