lcd

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 6 Imported by: 2

README

github.com/mdwhatcott/advent-of-code-lcd

An LCD display utility library for adventofcode.com/2016.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(scanner *bufio.Scanner, animate bool)

Types

type AnimatedPresenter

type AnimatedPresenter struct{}

func NewAnimatedPresenter

func NewAnimatedPresenter() *AnimatedPresenter

func (*AnimatedPresenter) Finalize

func (this *AnimatedPresenter) Finalize()

func (*AnimatedPresenter) Present

func (this *AnimatedPresenter) Present(lcd *LCD)

type LCD

type LCD struct {
	// contains filtered or unexported fields
}

func NewLCD

func NewLCD(columns, rows int) *LCD

func (*LCD) RectangleOn

func (this *LCD) RectangleOn(columns, rows int)

func (*LCD) RotateColumn

func (this *LCD) RotateColumn(column, rotation int)

func (*LCD) RotateRow

func (this *LCD) RotateRow(row, rotation int)

func (*LCD) String

func (this *LCD) String() (result string)

type Presenter

type Presenter interface {
	Present(lcd *LCD)
	Finalize()
}

type StaticPresenter

type StaticPresenter struct {
	// contains filtered or unexported fields
}

func NewStaticPresenter

func NewStaticPresenter() *StaticPresenter

func (*StaticPresenter) Finalize

func (this *StaticPresenter) Finalize()

func (*StaticPresenter) Present

func (this *StaticPresenter) Present(lcd *LCD)

Jump to

Keyboard shortcuts

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