keypad4x4

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: BSD-3-Clause Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const NoKeyPressed = 255

NoKeyPressed is used, when no key was pressed

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	Configure()
	GetKey() uint8
	GetIndices() (int, int)
}

Device is used as 4x4 keypad driver

func NewDevice

func NewDevice(r4, r3, r2, r1, c4, c3, c2, c1 machine.Pin) Device

takes r4 -r1 pins and c4 - c1 pins

Jump to

Keyboard shortcuts

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