Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Type = eng.DefineComponentType("gobot.gpio.motor", eng.ComponentFactoryFunc(func(ref v0.ComponentRef) (v0.Component, error) { return NewComponent(ref) })). Describe("[GoBot] GPIO Motor"). Register()
Type is the Component type
Functions ¶
func NewComponent ¶
func NewComponent(ref v0.ComponentRef) (v0.Component, error)
NewComponent creates a Component
Types ¶
type Component ¶
type Component struct { Config Adapter cmn.Adapter `inject:"gpio" map:"-"` // contains filtered or unexported fields }
Component is the implement of motor Component
Click to show internal directories.
Click to hide internal directories.