flipdots

package module
v0.0.0-...-3e6208d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2020 License: MIT Imports: 9 Imported by: 0

README

flipdots.go

Go library to access OpenLab's flipdot matrix

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlipDots

type FlipDots struct {
	Addr        *net.UDPAddr
	Connection  *net.UDPConn
	Width       int
	Height      int
	Dpi         float64
	FontSize    float64
	FontSpacing float64
	Foreground  *image.Uniform
	Background  *image.Uniform
}

func New

func New(addr string, width int, height int) (FlipDots, error)

func (*FlipDots) Clear

func (fd *FlipDots) Clear() error

func (*FlipDots) ImageToMatrix

func (fd *FlipDots) ImageToMatrix(img image.Image) string

func (*FlipDots) ScrollImage

func (fd *FlipDots) ScrollImage(img image.Image) error

func (*FlipDots) SendImage

func (fd *FlipDots) SendImage(img image.Image) error

func (*FlipDots) TextToImage

func (fd *FlipDots) TextToImage(text, ttfPath string) (image.Image, error)

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL