The Fritzing circuit diagram will show you how to wire up the three buttons and the sliding switch. It has power, ground and GPIO pins broken out and labeled. It is a breadboard-style blank board that lets you easily solder circuits for use with the Pi. To interface with the buttons to control the teleprompter on the Raspberry Pi, we're using an Adafruit Perma-Proto HAT.
The Bash script is launched from the terminal using “sudo. We can use a bash script to run the two Python scripts concurrently. Finally, one additional button is available to toggle between having the teleprompter app be full screen or windowed on the Pi. Two buttons are also available to increase or decrease the speed for the scrolling. When the switch is engaged, pynput will begin scrolling allowing your teleprompter to run. It can be thought of as the control interface for the Tkinter script. In this program, we're using the pynput library and Blinka, to simulate mouse scrolling inputs and the buttons. The second Python script is for controlling the teleprompter app with external digital inputs.