Close

Instructions

A project log for Graphics terminal for small computers

Draw graphics through a serial port

keithKeith 6 hours ago0 Comments

Install the Prerequisites

Open your Linux Mint terminal and install socat alongside the Python libraries:

In a bash shell:

sudo apt update
sudo apt install socat python3-pip
pip3 install pygame pyserial
sudo apt install python3-serial
sudo apt install python3-pygame

Open a bash shell and start the virtual communication ports

Run this command in a dedicated terminal window. It creates two linked virtual ports (/tmp/vtty0 and /tmp/vtty1).

socat -d -d pty,link=/tmp/vtty0,raw,echo=0 pty,link=/tmp/vtty1,raw,echo=0

Open another bash shell and start the graphics server

python3 graphics_server.py

Open another bash shell and start the 3d graphics generator

python3 3d_generator.py

Discussions