Micro Dot pHAT Driver
Project description
https://shop.pimoroni.com/products/microdot-phat
Micro Dot pHAT is an unashamedly old school LED matrix display board, with up to 30x7 pixels, using the Lite-On LTP-305 matrices. Perfect for building a retro scrolling message display or a tiny 30 band spectrum analyser.
Installing
Full install (recommended):
We’ve created an easy installation script that will install all pre-requisites and get your Micro Dot pHAT up and running with minimal efforts. To run it, fire up Terminal which you’ll find in Menu -> Accessories -> Terminal on your Raspberry Pi desktop, as illustrated below:
In the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:
curl https://get.pimoroni.com/microdotphat | bash
Alternatively, on Raspbian, you can download the pimoroni-dashboard and install your product by browsing to the relevant entry:
sudo apt-get install pimoroni
(you will find the Dashboard under ‘Accessories’ too, in the Pi menu - or just run pimoroni-dashboard at the command line)
If you choose to download examples you’ll find them in /home/pi/Pimoroni/microdotphat/.
Manual install:
Library install for Python 3:
on Raspbian:
sudo apt-get install python3-microdotphat
other environments:
sudo pip3 install microdotphat
Library install for Python 2:
on Raspbian:
sudo apt-get install python-microdotphat
other environments:
sudo pip2 install microdotphat
Development:
If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, cd to the library directory, and run:
sudo python3 setup.py install
(or sudo python setup.py install whichever your primary Python environment may be)
In all cases you will have to enable the i2c bus.
Documentation & Support
Guides and tutorials - https://learn.pimoroni.com/microdot-phat
Function reference - http://docs.pimoroni.com/microdotphat/
GPIO Pinout - https://pinout.xyz/pinout/micro_dot_phat
Get help - http://forums.pimoroni.com/c/support
Unofficial / Third-party libraries
Java library by Jim Darby - https://github.com/hackerjimbo/PiJava
0.2.1
BugFix: Call setup within set_brightness, fixes #20
0.2.0
BugFix: Defer setup to avoid import side effects
BugFix: Reset scroll X and Y to zero when cleared
Feature: Added Japanese text support
0.1.3
Added __version__ string to module
Added degrees symbol
Added mirroring: flip display left to right
Added DocStrings
0.1.2
Added set_decimal for toggling decimal places
Replaced clear_on_exit with set_clear_on_exit method
Added support for 180 degree rotation
0.1.1
Added set_brightness
0.1.0
Vertical scrolling
Tweaks to write_string
0.0.1
Initial Release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file microdotphat-0.2.1.tar.gz
.
File metadata
- Download URL: microdotphat-0.2.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ab087402b8f6179b5efbf762ba9530679d46bb97385716abbe3d9c07d08e9d7 |
|
MD5 | 4f5ae83651675d42466637e1ab36e54d |
|
BLAKE2b-256 | b3b905089a4ba12659d8c77b9ba661b4f461fe5bb52b70a8d29a3b28da6c6c27 |
File details
Details for the file microdotphat-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: microdotphat-0.2.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2a1f3d889ccdaaa829256f4f72fa42df47662c807943c6ddbc0a50680aef95e |
|
MD5 | f0ce9b7493ef1d2c7ef2b5cfa437670f |
|
BLAKE2b-256 | 7e2bf35bf551d89e7ef0fdf9ede71c2fa73ec316896ec34d5a4a8d0933086f20 |
File details
Details for the file microdotphat-0.2.1-py2-none-any.whl
.
File metadata
- Download URL: microdotphat-0.2.1-py2-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2e30c85187d081b9eb334b3e29fe98344cedf1bec8838d7439e6f89339b04f0 |
|
MD5 | 7a61356f8fd43311d7d29dde8ac284e9 |
|
BLAKE2b-256 | beb8ac4f9112cb334006cc8300e8a3ef63939adaed851f8842943b1c3f436eab |