oled_spi

package
v0.0.0-...-c75e8ed Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSD1306

type SSD1306 struct {
	Width, Height, Pages uint
	// contains filtered or unexported fields
}

func MakeSSD1306

func MakeSSD1306(funcs ...Setup) (display *SSD1306, err error)

func (*SSD1306) Clear

func (s *SSD1306) Clear()

func (*SSD1306) Command

func (s *SSD1306) Command(cmd byte) (err error)

func (*SSD1306) Commands

func (s *SSD1306) Commands(cmd []byte) (err error)

func (*SSD1306) Contrast

func (s *SSD1306) Contrast(contrast byte) (err error)

func (*SSD1306) Data

func (s *SSD1306) Data(data []byte) (err error)

func (*SSD1306) Image

func (s *SSD1306) Image(img image.Image) (err error)

func (*SSD1306) Init

func (s *SSD1306) Init() (err error)

func (*SSD1306) Refresh

func (s *SSD1306) Refresh() (err error)

func (*SSD1306) Reset

func (s *SSD1306) Reset() (err error)

func (*SSD1306) Start

func (s *SSD1306) Start() (err error)

type SSD1306Setup

type SSD1306Setup struct {
	BusId, DevId, ResetPin, DcPin uint
	Width, Height                 uint
}

type Setup

type Setup func(*SSD1306Setup)

func Height

func Height(w uint) Setup

func Width

func Width(w uint) Setup

Jump to

Keyboard shortcuts

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