firmata

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type = eng.DefineComponentType("gobot.adapter.firmata",
	eng.ComponentFactoryFunc(func(ref v0.ComponentRef) (v0.Component, error) {
		return NewComponent(ref)
	})).
	Describe("[GoBot] Firmata Adapter").
	Register()

Type is the Component type

Functions

func NewComponent

func NewComponent(ref v0.ComponentRef) (v0.Component, error)

NewComponent creates a new Component

Types

type Component

type Component struct {
	Config
	// contains filtered or unexported fields
}

Component is the implement of firmata Component

func (*Component) Adaptor

func (s *Component) Adaptor() gobot.Adaptor

Adaptor implements cmn.Adapter

func (*Component) Ref

func (s *Component) Ref() v0.ComponentRef

Ref implements v0.Component

func (*Component) Start

func (s *Component) Start() error

Start implements v0.LifecycleCtl

func (*Component) Stop

func (s *Component) Stop() error

Stop implements v0.LifecycleCtl

func (*Component) Type

func (s *Component) Type() v0.ComponentType

Type implements v0.Component

type Config

type Config struct {
	SerialPort string `map:"serialport"`
}

Config defines firmata configuration

Jump to

Keyboard shortcuts

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