hybridgroup.gobot/platforms/firmata
Adrian Zankich 828b10f556 Fix platform tests 2014-05-03 03:37:02 -07:00
..
LICENSE WIP project restructure 2014-04-29 13:20:32 -07:00
README.md WIP project restructure 2014-04-29 13:20:32 -07:00
firmata.go WIP project restructure 2014-04-29 13:20:32 -07:00
firmata_adaptor.go More WIP restructure 2014-04-30 08:10:44 -07:00
firmata_adaptor_test.go Fix platform tests 2014-05-03 03:37:02 -07:00
gobot-firmata_suite_test.go WIP project restructure 2014-04-29 13:20:32 -07:00
test_helper.go WIP project restructure 2014-04-29 13:20:32 -07:00

README.md

gobot-firmata

Gobot (http://gobot.io/) is a library for robotics and physical computing using Go

This library provides an adaptor for microcontrollers such as Arduino that support the Firmata protocol (http://firmata.org/wiki/Main_Page)

Build Status Coverage Status

Getting Started

Install the library with: go get -u github.com/hybridgroup/gobot-firmata

Example

package main

import (
	"github.com/hybridgroup/gobot"
	"github.com/hybridgroup/gobot-firmata"
	"github.com/hybridgroup/gobot-gpio"
)

func main() {

	firmata := new(gobotFirmata.FirmataAdaptor)
	firmata.Name = "firmata"
	firmata.Port = "/dev/ttyACM0"

	led := gobotGPIO.NewLed(firmata)
	led.Name = "led"
	led.Pin = "13"

	work := func() {
		gobot.Every("1s", func() {
			led.Toggle()
		})
	}

	robot := gobot.Robot{
		Connections: []gobot.Connection{firmata},
		Devices:     []gobot.Device{led},
		Work:        work,
	}

	robot.Start()
}

Hardware Support

The following firmata devices have been tested and are currently supported:

More devices are coming soon...

Documentation

We're busy adding documentation to our web site at http://gobot.io/ please check there as we continue to work on Gobot

Thank you!

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2013 The Hybrid Group. Licensed under the Apache 2.0 license.