ssd1306

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bit

type Bit bool
const (
	On  Bit = true
	Off Bit = false
)

type Display

type Display struct {
	*devices.I2CDevice

	Dev        *ssd1306.Dev
	Height     int
	Width      int
	Font       *basicfont.Face
	Background *image1bit.VerticalLSB
	// contains filtered or unexported fields
}

func New added in v0.0.7

func New(name string, width, height int) (*Display, error)

func (*Display) AnimatedGIF

func (d *Display) AnimatedGIF(fname string) error

func (*Display) Clear

func (d *Display) Clear()

func (*Display) Clip

func (d *Display) Clip(x0, y0, x1, y1 *int)

func (*Display) Draw

func (d *Display) Draw() error

func (*Display) DrawString

func (d *Display) DrawString(x, y int, str string)

func (*Display) Line

func (d *Display) Line(x0, y0, len, width int, value Bit)

func (*Display) Rectangle

func (d *Display) Rectangle(x0, y0, x1, y1 int, value Bit)

func (*Display) SetBit

func (d *Display) SetBit(x, y int, value Bit)

Jump to

Keyboard shortcuts

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