common

package
v0.0.0-...-fab637b Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 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 Adapter

type Adapter interface {
	Adaptor() gobot.Adaptor
}

Adapter represents gobot Adaptor

type PWMDriver

type PWMDriver interface {
	// SetPWMFrequency sets PWM frequency Hz
	SetPWMFrequency(uint) error
	// SetPWMPulse generates a pulse on channel
	SetPWMPulse(chn int, on uint, off uint) error
}

PWMDriver defines PWM Driver

type Servo

type Servo interface {
	// SetServoPos sets the position -1.0 - 1.0
	SetServoPos(pos float32) error
}

Servo defines abstract servo component

Jump to

Keyboard shortcuts

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