ssd1306

package
v0.0.0-...-07c6f37 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Emulates a 128x32 pixel monochrome OLED display with SPI interface. Exposes the display as a dynamically generated PNG available from an HTTP URL.

Physical hardware example: https://www.adafruit.com/products/661

Index

Constants

View Source
const (
	// Filename where SSD1306 will write its display upon exit.
	DumpFilename = "ssd1306.png"

	// HttpUrl where screen data will be available.
	HttpUrl = "http://localhost:1234/ssd1306.png"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ssd1306

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

func NewSsd1306

func NewSsd1306() *Ssd1306

func (*Ssd1306) PinMask

func (s *Ssd1306) PinMask() byte

PinMask declares the I/O pins the device is connected to.

func (*Ssd1306) Read

func (s *Ssd1306) Read() byte

Read 0x00; this peripheral is write-only.

func (*Ssd1306) Shutdown

func (s *Ssd1306) Shutdown()

func (*Ssd1306) String

func (s *Ssd1306) String() string

func (*Ssd1306) Write

func (s *Ssd1306) Write(data byte)

Write expects a byte representing the updated status of the parallel port that the display is connected to. Four bits are considered: MOSI, CLK, D/C, RST. The other four bits are ignored.

Jump to

Keyboard shortcuts

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