https://github.com/jangler/microdotphat-go
Go port of Python microdotphat library
https://github.com/jangler/microdotphat-go
Last synced: about 1 month ago
JSON representation
Go port of Python microdotphat library
- Host: GitHub
- URL: https://github.com/jangler/microdotphat-go
- Owner: jangler
- License: apache-2.0
- Created: 2022-05-23T17:57:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T12:13:56.000Z (almost 3 years ago)
- Last Synced: 2025-01-27T13:49:42.079Z (3 months ago)
- Language: Go
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
- Original Python package:
- API documentation:## 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).