bb8

package
v0.0.0-...-9f5348b Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnCollision

func OnCollision(bb8 *bb8, data Collision)

OnCollision handles collision events.

Types

type BB8

type BB8 interface {
	Start(callback func()) error
	Stop() error
	AddCollisionEventHandler(handler func(bb8 *bb8, data Collision))
	SetSpeed(speed uint8)
	TurnAround()
	Flash()
}

BB8 is an interface to do things with a BB-8 robot.

func NewBB8

func NewBB8(bluetoothID string) BB8

NewBB8 initializes a bluetooth connection to a BB-8 robot.

type Collision

type Collision struct {
	// contains filtered or unexported fields
}

Collision contains collision data reported by BB-8

Jump to

Keyboard shortcuts

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