sphero

package
v0.0.0-...-df177ff Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionConfKey_Red            = "red"
	ActionConfKey_Green          = "green"
	ActionConfKey_Blue           = "blue"
	ActionConfKey_Speed          = "speed"
	ActionConfKey_Heading        = "heading"
	ActionConfKey_DurationInSecs = "durationInSecs"
)

Variables

This section is empty.

Functions

func InitSpheros

func InitSpheros()

func RunAction

func RunAction(playerName string, action mqtt.SpheroAction)

func Wakeup

func Wakeup(playerName string)

Types

type SpheroBot

type SpheroBot struct {
	RallyePlayer player.RallyePlayer
	BleAdaptor   *ble.ClientAdaptor
	SprkDriver   *sprkplus.SPRKPlusDriver
	ActionChan   chan mqtt.SpheroAction
	Heading      uint16
	Color        SpheroColor
}

func (*SpheroBot) Wakeup

func (sb *SpheroBot) Wakeup()

type SpheroColor

type SpheroColor struct {
	Red   uint8
	Green uint8
	Blue  uint8
}

Jump to

Keyboard shortcuts

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