flipboard

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePanels

func CreatePanels(panelInfo PanelInfo, panelLayout PanelLayout) (*[][]panel.Panel, error)

func CreateVirtualBoard

func CreateVirtualBoard(panelWidth int, numberOfPanelsWide int, msgCharsAsDots []fontmap.Letter, msg string) virtualboard.VirtualBoard

func DisableCountdownClock

func DisableCountdownClock(board *Flipboard)

func DisplayMessageToPanels

func DisplayMessageToPanels(board *Flipboard, msg *options.FlipboardMessageOptions)

func EnableCountdownClock

func EnableCountdownClock(board *Flipboard)

func Play

func Play(board *Flipboard)

func SetCountdownClock

func SetCountdownClock(board *Flipboard, val string) error

Types

type Flipboard

type Flipboard struct {
	PanelInfo            PanelInfo
	PanelAddressesLayout [][]PanelAddress
	// contains filtered or unexported fields
}

func NewFlipboard

func NewFlipboard(info PanelInfo, layout [][]PanelAddress, opts ...Opts) (*Flipboard, error)

func (*Flipboard) DebugPanelAddressByGoingInOrder

func (b *Flipboard) DebugPanelAddressByGoingInOrder()

func (*Flipboard) DebugSinglePanel

func (b *Flipboard) DebugSinglePanel(address int)

func (*Flipboard) Enqueue

func (b *Flipboard) Enqueue(msg *options.FlipboardMessageOptions)

func (*Flipboard) GetPanel

func (b *Flipboard) GetPanel(x, y int) *panel.Panel

func (*Flipboard) SendAllPanelsAtOnce

func (b *Flipboard) SendAllPanelsAtOnce()

func (*Flipboard) SendPanelByPanel

func (b *Flipboard) SendPanelByPanel()

func (*Flipboard) SetAll

func (b *Flipboard) SetAll(val bool)

type Opts

type Opts func(*Flipboard) error

func NewCountdownDate

func NewCountdownDate() Opts

type PanelAddress

type PanelAddress int

type PanelInfo

type PanelInfo struct {
	PanelHeight              int
	PanelWidth               int
	PhysicallyDisplayedWidth int
	Port                     string
	Baud                     int
}

type PanelLayout

type PanelLayout [][]PanelAddress

Jump to

Keyboard shortcuts

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