Skip to content

lakshanthad/Python_ReTerminalQt5_LED_UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LED UI Demo Using Qt for Python on reTerminal

This is a demo application to control the STA and USR LEDs on the reTerminal just by clicking buttons on the LCD.

Here PySide2 is used for the development. PySide2 is the official Python module from the Qt for Python project, which provides access to the complete Qt5 framework. Qt for Python allows you to build interactive user interfaces in a more user friendly way! It is also very flexible to use and has a short learning curve.

For a step-by-step guide on building your own UI using Qt for Python on the reTerminal, click here

pir

Install

First you need to install the necessary libraries. However, if you are using our compiled Raspberry Pi OS or using the Raspberry Pi OS which is shipped with the reTerminal, it already includes these libraries and therefore you can skip this section and move on to the Usage section

Access reTerminal using the onboard LCD, external display or SSH as explained here and type the following on a terminal window to install the necessary packages

sudo apt install python3-pyside2.qtqml python3-pyside2.qtcore python3-pyside2.qtnetwork python3-pyside2.qtgui python3-pyside2.qtwidgets python3-pyside2.qtquick qml-module-qtquick-controls2 qml-module-qtquick-controls

Usage

  • Step 1. Clone this repo
git clone https://github.com/lakshanthad/Python_ReTerminalQt5_LED_UI
  • Step 2. Navigate to the Python_ReTerminalQt5_LED_UI directory
cd Python_ReTerminalQt5_LED_UI
  • Step 3. Run the app
python3 main.py

Alternatively, if you want to run the app using the reTerminal LCD, you can double click on the LED Test file

About

LED UI Demo using Qt for Python on the Seeed Studio reTerminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published