hardware

package
v0.0.0-...-f4b51b0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction uint8
const (
	Input Direction = iota
	Output
)

type Hardware

type Hardware struct{}

Hardware provides access to the hardware on the system.

func New

func New() (*Hardware, error)

func (*Hardware) Close

func (h *Hardware) Close()

func (*Hardware) InitPin

func (h *Hardware) InitPin(pin uint8, direction Direction)

func (*Hardware) ReadPin

func (h *Hardware) ReadPin(pin uint8) bool

func (*Hardware) WritePin

func (h *Hardware) WritePin(pin uint8, v bool)

Jump to

Keyboard shortcuts

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