Skip to main content

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.3.0

  • Improvement: Default i2c library is now smbus2

  • Improvement: Significant restructure of library around generic is31fl3731 driver

  • Improvement: Allow for alternate i2c addresses

  • BugFix: Add missing get_buffer_shape

  • BugFix: Fix malformed chars in font5x7

  • New: Fonts, fonts, fonts, and a set_font method to use them

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

Release files for scrollphathd 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrollphathd 1.3.0
File Size Uploaded
scrollphathd-1.3.0.tar.gz 29.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scrollphathd 1.3.0
File Interpreter ABI Platform
scrollphathd-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.7 kB

Release files / scrollphathd-1.3.0.tar.gz

Download URL scrollphathd-1.3.0.tar.gz
Size 29.5 kB
Tags Source
SHA-256 checksum
How to use checksums
55df045a559b3562646d60cffcbf7b44b3987e783e3b74e7238de9792f89232b
BLAKE2b-256 checksum
How to use checksums
7f5189b55fa1f7a9ac7a85d9f4351d19a05614c76a47b89e0ba3c1f545cdee2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

Release files / scrollphathd-1.3.0-py3-none-any.whl

Download URL scrollphathd-1.3.0-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb450900024d4815246b310588c269a30bf26a7ad2b84e2ca5845bb2394b96f3
BLAKE2b-256 checksum
How to use checksums
b014d454de1589ab82f4e0079a86987bf7c41ec77a019e902d0b18fed74aabbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.1

3 release files

1.2.0

3 release files

1.1.1

3 release files

1.1.0

3 release files

1.0.1

1 release file

1.0.0

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page