top
Package: Firmata

This is a binding for the arduino Firmata package.

You need to burn the simple Firmata image onto your Arduino then you
can control it over the USB using this library.

import "github.com/choffee/gofirmata"

func main () {

  board, err := NewBoard("/dev/ttyUSB1", 57600)
  if err != nil {
    log.Fatal("Could not setup board")
  }
  // Set the mode of a pin
  println("set 13 to output")
  board.SetPinMode(13,MODE_OUTPUT)

  // Turn on pin 13
  println("set 13 to 1")
  board.WriteDigital(13,1)
}

Pins and colors

Imported by 1 package(s)

  1. github.com/choffee/deskdisplay

Imports 1 package(s)

  1. github.com/tarm/goserial

Test imports 1 package(s)

  1. launchpad.net/gocheck