five

package module
v0.0.0-...-5c9c6cd Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2014 License: MIT Imports: 8 Imported by: 0

README

================================================================= Go Port of Johnny Five

This is a straight port of the Johnny Five project to the Go Programming Language.

I took this on because:

  1. I like Go.
  2. I like the Johnny Five Project.
  3. This totally needs to be a thing.

Current Project Status:

  • Serial Port Detection complete
  • Firmata Initialization complete
  • Led complete not complete, based off of old code, need to add some functionality and refactor a little

Current Goal:

  • Refactor LED functionality to support animate, some callbacks, and generally getting up to the latest commit
  • Servo Port
  • Error Handling Improvements

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serial

func Serial(b extendedBoard) (client *firmata.FirmataClient, err error)

Types

type Board

type Board interface {
	Close()
	Led(byte) Led // TODO: Replace int with an led struct
	Ready() chan int
	Done() chan int
}

func NewBoard

func NewBoard() (created_board Board, reterr error)

type Device

type Device interface {
}

type Led

type Led interface {
	IsOn() bool

	On()
	Off()
	Toggle()
	Brightness(byte)

	Strobe(time.Duration)
	Pulse(time.Duration)
	Fade(byte, time.Duration)
	FadeIn(time.Duration)
	FadeOut(time.Duration)

	Stop()
	// contains filtered or unexported methods
}

Directories

Path Synopsis
examples
exp01 command
exp02 command

Jump to

Keyboard shortcuts

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