furby

package
v0.0.0-...-a555a91 Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package furby provides a Gobot driver for Furbies, which are treated as a General Purpose Input/Output device.

Although a Furby itself doesn't have an on/off device, by wiring its power to a GPIO pin, we can control its on/off via GPIO state toggles.

Control of the Furby's behavior itself is dependent upon audio signals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FurbyDriver

type FurbyDriver struct {
	gobot.Commander
	// contains filtered or unexported fields
}

func NewFurbyDriver

func NewFurbyDriver(a gpio.DigitalWriter, name string, pin string, soundQueue chan string) *FurbyDriver

func (*FurbyDriver) Connection

func (f *FurbyDriver) Connection() gobot.Connection

func (*FurbyDriver) ExecuteCommand

func (f *FurbyDriver) ExecuteCommand(command string) (err error)

func (*FurbyDriver) Halt

func (f *FurbyDriver) Halt() (errs []error)

func (*FurbyDriver) ListCommands

func (f *FurbyDriver) ListCommands() []string

func (*FurbyDriver) Name

func (f *FurbyDriver) Name() string

func (*FurbyDriver) Off

func (f *FurbyDriver) Off() (err error)

Off sets the Furby to a low state (low = off).

func (*FurbyDriver) On

func (f *FurbyDriver) On() (err error)

On sets the Furby to a high state.

func (*FurbyDriver) Pin

func (f *FurbyDriver) Pin() string

Pin returns the GPIO pin in use

func (*FurbyDriver) Start

func (f *FurbyDriver) Start() (errs []error)

func (*FurbyDriver) State

func (f *FurbyDriver) State() bool

State return true if the Furby is On and false if the Furby is Off

func (*FurbyDriver) Toggle

func (f *FurbyDriver) Toggle() (err error)

Toggle sets the Furby to the opposite of its current state

Jump to

Keyboard shortcuts

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