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.2
BugFix: Reset scroll X and Y to zero when cleared - The Sequel
Switch to smbus2 for i2c back-end
Feature: add is_connected to check for presence of HAT
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 Distribution
File details
Details for the file microdotphat-0.2.2.tar.gz
.
File metadata
- Download URL: microdotphat-0.2.2.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79270fff76f81f9d31ef7c7f469d3342f43fdcce66d483f5ab5e4a4dd1c1d238 |
|
MD5 | a082e33910808c9499f578e282e8f50e |
|
BLAKE2b-256 | 5c156167272dc0660b992d0ae64f0bf7607bafceadaa8c46c81b1d8fe7dab7d0 |
File details
Details for the file microdotphat-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: microdotphat-0.2.2-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b3923f275216216faece68ea25f39528eea66b9327d325d1c85b6b767531b73 |
|
MD5 | 5030e8eb9d6d4b7a100dd29ee091acb1 |
|
BLAKE2b-256 | 4538c6b81809348f46909cdb668f3fac9f84e67c9d62fd002a97b3b1b4ab6a47 |