Categorygithub.com/jangler/microdotphat-go
repositorypackage
0.0.0-20220528120630-ac28d075bff7
Repository: https://github.com/jangler/microdotphat-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

microdotphat-go

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.

Status

Breaking changes to the package may occur at any time until version v1.0.0.

Quick links

Known differences from the Python microdotphat package

  • 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 your func 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 one Scroll function.
  • The Python package has functions set_mirror and set_rotate180. This package collapses those functions into one SetMirror function (rotation is achieved by flipping both axes).