https://github.com/tsbarnes/microdotphat
Micro Dot pHAT manager is a framework for the Pimoroni Micro Dot pHAT.
https://github.com/tsbarnes/microdotphat
microdot-phat pimoroni python raspberry-pi raspberrypi
Last synced: about 1 month ago
JSON representation
Micro Dot pHAT manager is a framework for the Pimoroni Micro Dot pHAT.
- Host: GitHub
- URL: https://github.com/tsbarnes/microdotphat
- Owner: tsbarnes
- Created: 2021-08-09T04:49:07.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-08T06:45:47.000Z (over 4 years ago)
- Last Synced: 2025-02-25T23:29:09.062Z (over 1 year ago)
- Topics: microdot-phat, pimoroni, python, raspberry-pi, raspberrypi
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Micro Dot pHAT manager
Micro Dot pHAT manager is a framework for the Pimoroni Micro Dot pHAT.
It controls the Micro Dot pHAT using various *apps* which you can switch between with a CLI utility.
## Installation
First, clone the repository and change directory into it:
```shell
git clone git@github.com:tsbarnes/microdotphat.git ~/microdotphat
cd ~/microdotphat
```
Then, install the requirements:
```shell
pip3 install -r requirements.txt
```
Now you're ready to run it:
```shell
python3 app.py
```
If you want it to start automatically on boot:
```shell
sudo cp ~/microdotphat/microdotphat.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable microdotphat
```
## Apps
The included *apps* are as follows:
* `graph` - displays a line graph of the system load
* `scrolling_text` - scrolls through a line of text
* `thermal` - reports the CPU temperature
* `webtext` - a receiver app for [webtext](https://github.com/tsbarnes/webtext)
## CLI
To use the CLI client, run `cli.py`. It takes a command line argument for previous, next, etc.
The current list of CLI commands is as follows:
* `python3 cli.py next` - change to next app
* `python3 cli.py previous` - change to previous app