Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

Sense HAT’s LED display as Linux FIFO file

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages