matrix

package
v0.0.0-...-2ca7a8e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key int
const (
	KNone Key = iota
	K0
	K1
	K2
	K3
	K4
	K5
	K6
	K7
	K8
	K9
	KA
	KB
	KC
	KD
	KStar
	KHash
)

func (Key) String

func (k Key) String() string

type Matrix4x4

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

A Matrix4x4 struct represents access to the keypad.

func New

func New(rowPins, colPins []int) (*Matrix4x4, error)

New creates a new interface for matrix4x4.

func (*Matrix4x4) Close

func (d *Matrix4x4) Close()

Close.

func (*Matrix4x4) PressedKey

func (d *Matrix4x4) PressedKey() (key Key, err error)

Pressed key returns the current key pressed on the keypad.

func (*Matrix4x4) SetPollDelay

func (d *Matrix4x4) SetPollDelay(delay int)

SetPollDelay sets the delay between run of key scan acquisition loop.

Jump to

Keyboard shortcuts

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