Run your custom scripts by the joystick to choose which one.And show the information on the LED matrix.It be design like to Linux file system that show color of filename like the Ubuntu.
- install python3
- install sense hat library
- create
entry/
folder reference Use example entry - run it
python src/index.py
The LED matrix show now foucs(filename). Use the joystick to change your foucs.
The direction table:
direction | action |
---|---|
right | entry the folder |
left | leave the folder |
up | choose the previous file in same folder |
down | choose the next file in same folder |
middle | execute the script |
The focus show different color by filetype.
Your can change it at src/color.py
.
The default color:
color | description |
---|---|
blue | folder |
green | execute file |
white | normal file |
purple | result of execute file |
I show you two methods create your tree of scripts.The root folder of scripts named entry
.
Run the command ln -s ./example/entry ./entry
at project directory.
The entry/
folder be create(link to ./example/entry
folder) at project directory.
Create the entry/
folder at project directory.
Put your scripts or folder in here.
The show the script stdout on LED Matrix.
Reference example/systemd/senseHat.service
Welcome~
BYS(dan3612812@gmail.com)