Python library for driving Pimoroni Mote pHAT
Project description
https://shop.pimoroni.com/products/mote-phat
Drive four channels of APA102 pixels from your Raspberry Pi or Pi Zero with Mote pHAT
Installing
Full install (recommended):
We’ve created an easy installation script that will install all pre-requisites and get your Mote 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/motephat | 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/motephat/.
Manual install:
Library install for Python 3:
on Raspbian:
sudo apt-get install python3-motephat
other environments:
sudo pip3 install motephat
Library install for Python 2:
on Raspbian:
sudo apt-get install python-motephat
other environments:
sudo pip2 install motephat
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/mote-phat
Function reference - http://docs.pimoroni.com/motephat/
GPIO Pinout - https://pinout.xyz/pinout/mote_phat
Get help - http://forums.pimoroni.com/c/support
0.0.3
Fix EOF packet to 42 clocks
Add gamma adjustment
Switch from “exit” to “raise ImportError” when checking required modules
Add short sleep to guarantee that pin state is set when toggled
0.0.2
Initial release to Raspbian apt repository
0.0.1
Mote-compatible library for Mote pHAT
Project details
Release history Release notifications | RSS feed
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 motephat-0.0.3.tar.gz
.
File metadata
- Download URL: motephat-0.0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b00b5f1285be19fbabe884542a963eedce904c7f12fd5cf429bcc9db7e3c43e |
|
MD5 | b1fe8e7c5a8a19348d83bcffce2c1518 |
|
BLAKE2b-256 | 7366cfa735c5a3ac1ba8b53da0ee4fb3f08d239751241bf97e235d254e001f6e |
File details
Details for the file motephat-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: motephat-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a57ac75eb65461f9eb59f2e9816062f0f97dddc65d04441e29d419bcab1773d |
|
MD5 | ca5c71c0969662bde05701b8cc27f0f5 |
|
BLAKE2b-256 | 3030e37e3e12f3721c22b8a20b5d553fb6fc1872aa04e5f0c2dcb4cfe4e00674 |
File details
Details for the file motephat-0.0.3-py2-none-any.whl
.
File metadata
- Download URL: motephat-0.0.3-py2-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e06eaa8a19ac15413fe25d7fd1af6dd7b169684a4ac3d0205741d53343313c0 |
|
MD5 | e636acb214c0331aaae1cabdcb1c17ed |
|
BLAKE2b-256 | a07cb1e48828dbbc536a7db143aa70be61dbf209654e99c87d05750ef3a5c66f |