simulator

package
v0.0.0-...-dbd5dbf Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

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

func NewDisplay

func NewDisplay(width, height, thickness int16) *Display

func (*Display) CanUpdateNow

func (d *Display) CanUpdateNow() bool

func (*Display) Display

func (d *Display) Display() error

func (*Display) Render

func (d *Display) Render(ops *op.Ops)

func (*Display) SetPixel

func (d *Display) SetPixel(x, y int16, c color.RGBA)

func (*Display) Size

func (d *Display) Size() (x, y int16)

type Gotogen

type Gotogen struct {
	// Face *pixbufmatrix.Matrix
	// Menu *pixbufmatrix.Matrix
	Face *Display
	Menu *Display
	// contains filtered or unexported fields
}

func (*Gotogen) Accelerometer

func (g *Gotogen) Accelerometer() (int32, int32, int32, gotogen.SensorStatus)

func (*Gotogen) BoopDistance

func (g *Gotogen) BoopDistance() (uint8, gotogen.SensorStatus)

func (*Gotogen) ButtonPress

func (g *Gotogen) ButtonPress(b gotogen.MenuButton)

func (*Gotogen) EarlyInit

func (g *Gotogen) EarlyInit() (faceDisplay gotogen.Display, err error)

func (*Gotogen) LateInit

func (g *Gotogen) LateInit(_ *textbuf.Buffer)

func (*Gotogen) MenuItems

func (g *Gotogen) MenuItems() []gotogen.Item

func (*Gotogen) PressedButton

func (g *Gotogen) PressedButton() gotogen.MenuButton

func (*Gotogen) StatusLine

func (g *Gotogen) StatusLine() string

func (*Gotogen) Talking

func (g *Gotogen) Talking() bool

func (*Gotogen) UpdateAccelerometerX

func (g *Gotogen) UpdateAccelerometerX(v float64)

func (*Gotogen) UpdateAccelerometerY

func (g *Gotogen) UpdateAccelerometerY(v float64)

func (*Gotogen) UpdateAccelerometerZ

func (g *Gotogen) UpdateAccelerometerZ(v float64)

func (*Gotogen) UpdateBoop

func (g *Gotogen) UpdateBoop(v float64)

func (*Gotogen) UpdateTalk

func (g *Gotogen) UpdateTalk(v bool)

Jump to

Keyboard shortcuts

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