Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoRobot ¶
type GoRobot interface { On(name string, f func(s interface{})) (err error) Publish(name string, data interface{}) Stop() error }
GoRobot is the interface for the gobot.Robot
type Robot ¶
type Robot struct {
// contains filtered or unexported fields
}
Robot is a gobot wrapper
func Create ¶
func Create(gpioPin string, config *ServoConfig) (*Robot, error)
Create creates a new robot from gobot
func New ¶
func New(robo GoRobot, controller ServoController, config *ServoConfig) *Robot
New returns a new robot
type ServoConfig ¶
type ServoConfig struct { AngleNone uint8 // when the build is not running AngleRunning uint8 // when the build is running AngleSuccess uint8 // when the build is successful AngleFailure uint8 // when the build is failed }
ServoConfig is the configuration for the servo
type ServoController ¶
Click to show internal directories.
Click to hide internal directories.