package
0.13.0
Repository: https://github.com/hybridgroup/gobot.git
Documentation: pkg.go.dev

# Functions

NewDigitalPin returns a DigitalPin given the pin number and an optional sysfs pin label.
NewI2cDevice returns an io.ReadWriteCloser with the proper ioctrl given an i2c bus location and device address.
NewMockFilesystem returns a new MockFilesystem given a list of file paths.
OpenFile calls either the NativeFilesystem or user defined OpenFile.
SetFilesystem sets the filesystem implementation.
SetSyscall sets the Syscall implementation.
Syscall calls either the NativeSyscall or user defined Syscall.

# Constants

GPIOPATH default linux gpio path.
HIGH gpio level.
Adapter functionality.
IN gpio direction.
LOW gpio level.
OUT gpio direction.

# Structs

A MockFile represents a mock file that contains a single string.
MockFilesystem represents a filesystem of mock files.
MockSyscall represents the mock Syscall.
NativeFilesystem represents the native file system implementation.
NativeSyscall represents the native Syscall.

# Interfaces

DigitalPin is the interface for sysfs gpio interactions.
A File represents basic IO interactions with the underlying file system.
Filesystem opens files and returns either a native file system or user defined.
SystemCaller represents a Syscall.