periph

package
v0.0.0-...-b2889d6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType int
const (
	EdgeRising EventType = iota
	EdgeFalling
)

func (EventType) String

func (g EventType) String() string

type MovementSensor

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

func InitMove

func InitMove(label string) (*MovementSensor, error)

func (*MovementSensor) Close

func (m *MovementSensor) Close() error

func (*MovementSensor) Pause

func (m *MovementSensor) Pause()

func (*MovementSensor) Resume

func (m *MovementSensor) Resume()

func (*MovementSensor) Start

func (m *MovementSensor) Start() error

func (*MovementSensor) WatchEvent

func (m *MovementSensor) WatchEvent() <-chan EventType

type RFIDController

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

func InitRFID

func InitRFID(strength int) (*RFIDController, error)

func (*RFIDController) Close

func (r *RFIDController) Close() error

func (*RFIDController) RecvUID

func (r *RFIDController) RecvUID() <-chan []byte

type StatusLeds

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

func InitLeds

func InitLeds(redName, greenName string) (*StatusLeds, error)

func (*StatusLeds) CheckMode

func (s *StatusLeds) CheckMode() error

func (*StatusLeds) Close

func (s *StatusLeds) Close() error

func (*StatusLeds) ErrorMode

func (s *StatusLeds) ErrorMode() error

func (*StatusLeds) LockedMode

func (s *StatusLeds) LockedMode() error

func (*StatusLeds) UnlockedMode

func (s *StatusLeds) UnlockedMode() error

Jump to

Keyboard shortcuts

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