Skip to main content

Scroll pHAT HD Driver

Project description

Scroll pHAT HD https://shop.pimoroni.com/products/scroll-phat-hd

17x7 pixels of single-colour, brightness-controlled, message scrolling goodness!

Installing

Manual install:

Library install for Python 3:

on Raspbian:

sudo apt-get install python3-scrollphathd

other environments:

sudo pip3 install scrollphathd

Library install for Python 2:

on Raspbian:

sudo apt-get install python-scrollphathd

other environments:

sudo pip2 install scrollphathd

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

Unofficial / Third-party libraries

1.2.1

  • New: Exposed set_gamma method for user gamma correction

  • Improvement: Removed web API import to prevent hard dependency on Flask

  • Improvement: Many improvements to the HTTP API including autoscroll

  • Optimisation: write_string will calculate string size and grow buffer once to fit

  • Optimisation: set_graph will grow buffer to fit the graph

  • Bugfix: Fixed ASCII font to place accented characters at correct codepoints

1.2.0

  • New: Added set_font to set current font for all write_string calls

  • New: Added before_display argument to show to modify the display buffer

1.1.1

  • Bugfix: Removed Flask HTTP API entry_point to prevent bin file conflict between Python 2 and 3

1.1.0

  • New: Added Flask HTTP API

  • New: Init is deferred until the library is used

1.0.1

  • New: Added gamma correction

1.0.0

  • New: Added set_brightness to globally set maximum display brightness

  • New: Added get_buffer_shape to return internal buffer shape

  • New: Added get_shape to return display shape

  • New: Added set_clear_on_exit, pass True/False to set/clear

  • Improvement: draw_char no longer fills black pixels, which was incongruent with letter spacing

  • Improvement: ‘1’ in font3x5 is now 3 pixels wide

  • Improvement: Monospacing option for fonts

  • Improvement: Fonts can now be indexed by char in addition to ordinal

  • Improvement: Clear now resets scroll position

  • Improvement: Fill now grows buffer and fills in single operations

  • Improvement: scroll(0,0) no longer enforces a default scroll

  • Improvement: width/height now private, reimplemented as read-only properties

  • Improvement: initialization now detects disabled i2c or missing pHAT and emits a friendly error

  • Improvement: cleared display sooner to mitigate flash of lit pixels on startup

  • Bugfix: Corrected default scroll direction

  • Bugfix: 90 and 270 degree rotations are no longer cropped to 7 pixels wide

  • Bugfix: Fixed missing version_info

  • Bugfix: Graph catches IndexError and gracefully ignores missing values

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

scrollphathd-1.2.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distributions

scrollphathd-1.2.1-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

scrollphathd-1.2.1-py2-none-any.whl (25.2 kB view details)

Uploaded Python 2

File details

Details for the file scrollphathd-1.2.1.tar.gz.

File metadata

File hashes

Hashes for scrollphathd-1.2.1.tar.gz
Algorithm Hash digest
SHA256 ecd711d3047d7f5e53d1332cc3e77145c863bcaee2cf9d36aab21f20af216835
MD5 ee9b4c7df59a05163f7a043f74a4cc5f
BLAKE2b-256 02ad8fc3d220beb62d5c7c4b7bce61bbc7d6f70a0ad53da0da58c13c91c22c73

See more details on using hashes here.

File details

Details for the file scrollphathd-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scrollphathd-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 615f3030b28904a3020d7ebad9340b6e509dfc885e17dc6ac9194af3db23ca13
MD5 5c829c664d2f96cf27941d7beaea92c5
BLAKE2b-256 55964d1b40a7de42a6a09ed02b1b26821e3b2ced0869cd4ed7b64f898d34bd0e

See more details on using hashes here.

File details

Details for the file scrollphathd-1.2.1-py2-none-any.whl.

File metadata

File hashes

Hashes for scrollphathd-1.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 ebd96d3fc6b6d48065b9a61b4bb0a6ca4d8ff88efb92801a1103b6aebda49b7c
MD5 483ad985c071a09a3535fcf3ce299929
BLAKE2b-256 33ecdac4c50b8e2fd2544b8f84f9f224401853381d40d2a24d445fb493b70977

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page