A pure Go interface to the Micro Dot pHAT LED matrix display board. The API is based on that of the official microdotphat Python library, and features an automatically resized scrollable on/off pixel buffer and built-in text drawing capabilities.
See the examples/ directory for usage examples.
Breaking changes to the package may occur at any time until version v1.0.0.
- Original Python package: https://github.com/pimoroni/microdot-phat
- API documentation: https://pkg.go.dev/github.com/jangler/microdotphat-go
- The Python package clears the display at program exit by default
(configurable via
set_clear_on_exit); this package does not. If you want this behavior, add this code to yourfunc main:defer func() { microdotphat.Clear() microdotphat.Show() }() - The Python package has three functions for scrolling the buffer (not
including
scroll_to). This package collapses those functions into oneScrollfunction. - The Python package has functions
set_mirrorandset_rotate180. This package collapses those functions into oneSetMirrorfunction (rotation is achieved by flipping both axes).