Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Display
- func (d *Display) Configure(cfg Config)
- func (d *Display) PrintChar(char byte)
- func (d *Display) PrintCharEx(char byte, inverse bool)
- func (d *Display) PrintCharInverse(char byte)
- func (d *Display) PrintText(str string)
- func (d *Display) PrintTextEx(str string, inverse bool)
- func (d *Display) PrintTextInverse(str string)
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
View Source
var PixelOff = color.RGBA{}
PixelOff is used when a pixel should be "off" for the font. The default should work well for all displays.
View Source
var PixelOn = color.RGBA{R: 1}
PixelOn is used when a pixel should be "on" for the font. The default likely works for all common OLED drivers.
Functions ¶
This section is empty.
Types ¶
type Display ¶
Display wraps
func NewDisplay ¶
func (*Display) PrintCharEx ¶ added in v1.2.0
func (*Display) PrintCharInverse ¶ added in v1.2.0
func (*Display) PrintTextEx ¶ added in v1.2.0
func (*Display) PrintTextInverse ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.