1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-01 13:48:57 +08:00
deadprogram 2b4b1d019b docs: correct Particle README link
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 10:55:03 +01:00

43 lines
839 B
Go

/*
Package particle provides the Gobot adaptor for the Particle Photon and Electron.
Installing:
go get gobot.io/x/gobot && go install gobot.io/x/gobot/platforms/particle
Example:
package main
import (
"time"
"gobot.io/x/gobot"
"gobot.io/x/gobot/drivers/gpio"
"gobot.io/x/gobot/platforms/particle"
)
func main() {
core := paticle.NewAdaptor("device_id", "access_token")
led := gpio.NewLedDriver(core, "D7")
work := func() {
gobot.Every(1*time.Second, func() {
led.Toggle()
})
}
robot := gobot.NewRobot("particle",
[]gobot.Connection{core},
[]gobot.Device{led},
work,
)
robot.Start()
}
For further information refer to Particle readme:
https://github.com/hybridgroup/gobot/blob/master/platforms/particle/README.md
*/
package particle // import "gobot.io/x/gobot/platforms/particle"