ssd1306

package
v0.0.0-...-6b1210f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	Width:         128,
	Height:        64,
	Rotated:       false,
	Sequential:    false,
	SwapTopBottom: false,
}

Functions

This section is empty.

Types

type CharCode

type CharCode = int

type CharData

type CharData = [][]byte

type Font

type Font struct {
	// contains filtered or unexported fields
}
var MonoFont Font = Font{
	// contains filtered or unexported fields
}

NotCourierSans as base

type FontData

type FontData = map[CharCode]CharData

type Options

type Options struct {
	Width         int
	Height        int
	Rotated       bool
	Sequential    bool
	SwapTopBottom bool
}

type SSD1306

type SSD1306 struct {
	Options Options
	// contains filtered or unexported fields
}

func NewSSD1306

func NewSSD1306(dev *i2c.Dev, options Options) *SSD1306

func (*SSD1306) DisplayOff

func (d *SSD1306) DisplayOff() error

func (*SSD1306) DisplayOn

func (d *SSD1306) DisplayOn() error

func (*SSD1306) Draw

func (d *SSD1306) Draw() error

func (*SSD1306) Init

func (d *SSD1306) Init() error

func (*SSD1306) Println

func (d *SSD1306) Println(msg string, y int)

func (*SSD1306) SetPixel

func (d *SSD1306) SetPixel(row, col int, pixel byte) error

func (*SSD1306) WriteChar

func (d *SSD1306) WriteChar(charCode, x, y int) error

func (*SSD1306) WriteString

func (d *SSD1306) WriteString(msg string, x, y int)

Jump to

Keyboard shortcuts

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