hs42561k

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIllegalDigit = errors.New("Invalid digit selected")

Functions

This section is empty.

Types

type Character

type Character byte

Each bit translates to a pin, which is driven high or low

const (
	Zero  Character = 0
	One   Character = 1
	Two   Character = 2
	Three Character = 3
	Four  Character = 4
	Five  Character = 5
	Six   Character = 6
	Seven Character = 7
	Eight Character = 8
	Nine  Character = 9
	Dash  Character = 10
	E     Character = 11
	H     Character = 12
	L     Character = 13
	P     Character = 14
	Blank Character = 15
	Dot   Character = 128
)

func (Character) String

func (char Character) String() string

type Device

type Device interface {
	Configure()
	SetDigit(digit byte, character Character) error
}

func NewDevice

func NewDevice(displayDevice max7219spi.Device, digitNumber uint8) Device

Jump to

Keyboard shortcuts

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