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 ¶
- type FurbyDriver
- func (f *FurbyDriver) Connection() gobot.Connection
- func (f *FurbyDriver) ExecuteCommand(command string) (err error)
- func (f *FurbyDriver) Halt() (errs []error)
- func (f *FurbyDriver) ListCommands() []string
- func (f *FurbyDriver) Name() string
- func (f *FurbyDriver) Off() (err error)
- func (f *FurbyDriver) On() (err error)
- func (f *FurbyDriver) Pin() string
- func (f *FurbyDriver) Start() (errs []error)
- func (f *FurbyDriver) State() bool
- func (f *FurbyDriver) Toggle() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FurbyDriver ¶
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) 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
Click to show internal directories.
Click to hide internal directories.