ssd1306font

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 2 Imported by: 0

README

ssd1306_font

OLED ssd1306 font library using TinyGo

readme todo

Documentation

Index

Constants

View Source
const (
	FONT_6x8   = 0x00
	FONT_7x10  = 0x01
	FONT_11x18 = 0x02
	FONT_16x26 = 0x03
)

Font types

Variables

View Source
var Font11x18 = [...]uint16{}/* 1710 elements not displayed */
View Source
var Font16x26 = [...]uint16{}/* 2470 elements not displayed */
View Source
var Font6x8 = [...]uint16{}/* 760 elements not displayed */
View Source
var Font7x10 = [...]uint16{}/* 950 elements not displayed */

start from 32[space] up to 126[~] = offset -32

Functions

This section is empty.

Types

type Config

type Config struct {
	FontType uint8
}

Config is the configuration for the display

type Display

type Display struct {
	XPos int16
	YPos int16
	// contains filtered or unexported fields
}

Display wraps

func NewDisplay

func NewDisplay(device ssd1306.Device) Display

NewI2C creates a new SSD1306 connection. The I2C wire must already be configured.

func (*Display) Configure

func (d *Display) Configure(cfg Config)

Configure initializes the display with default configuration

func (*Display) PrintChar

func (d *Display) PrintChar(char byte)

func (*Display) PrintText

func (d *Display) PrintText(str string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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