lcd

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

github.com/mdw-aoc/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
⌂ 换网址