Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

filips123/SenseOUT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sense HAT

SenseOUT

Sense HAT’s LED display as Linux FIFO file.

Description

The project has a Python 3 program that reads data from a Linux FIFO file and prints them to Sense HAT’s LED display. Reading from normal file or other device file is also supported.

The project is made just for fun and is shouldn't have any useful value. If you find it, please let me know.

Usage

The project works only on Raspberry Pi with attached Sense HAT and installed Python. It was tested on Raspberry Pi 3, but it should also works on other versions of Raspberry Pi.

First, you should clone the project:

git clone  https://github.com/filips123/SenseOUT.git # Clone the project
cd SenseOUT # Go to project directory

Then you should create a new Linux FIFO file:

mkfifo sensehat # Create a new FIFO file

The default input file is sensehat. To change it, pass file name as first program argument:

python3 handler.py /path/to/file # Use custom file

You could run the program in the background:

python3 handler.py & # Run the program in the background

Then you could write data to the file and they will be displayed on Sense HAT’s LED display:

echo "ABC" > sensehat # Display output only on Sense HAT’s LED display
# OR #
echo "ABC" | tee sensehat # Display output on Sense HAT’s LED and in terminal

You could also display commands outputs, but you shouldn't use the commands with a lot of output:

ls | tee sensehat # Display content of directory on Sense HAT’s LED and in terminal

License

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

Releases

No releases published

Packages

No packages published

Languages