gorduino

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

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

Go to latest
Published: Dec 11, 2014 License: MIT Imports: 2 Imported by: 0

README

gorduino

Simple Arduino wrapper for Go, based on go-firmata by kraman.

Usage:

package main

import (
  "github.com/yanzay/gorduino"
  "time"
)

func main() {
  g := gorduino.NewGorduino("/dev/tty.usbmodem1411", 13)
  for {
    g.On(13)
    time.Sleep(1 * time.Second)
    g.Off(13)
    time.Sleep(1 * time.Second)
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gorduino

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

func NewGorduino

func NewGorduino(port string, pins ...byte) (*Gorduino, error)

func (*Gorduino) Off

func (g *Gorduino) Off(p byte)

func (*Gorduino) On

func (g *Gorduino) On(p byte)

func (*Gorduino) Toggle

func (g *Gorduino) Toggle(p byte)

Jump to

Keyboard shortcuts

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