You must change directory to the directory where GoCV has been installed, then you can run the code.
chdir %GOPATH%\src\gocv.io\x\gocv
go run cmd\hello\main.go
package main | |
import ( | |
"fmt" | |
"time" | |
"gobot.io/x/gobot" | |
"gobot.io/x/gobot/api" | |
) |
// how to run: | |
// go run mqtt.go tcp://iot.eclipse.org:1883 /topic/name | |
package main | |
import ( | |
"os" | |
mqtt "github.com/eclipse/paho.mqtt.golang" | |
"github.com/gizak/termui" | |
) |
pi@raspberrypi:~ $ ./raspi_ads1015 | |
2017/04/26 18:26:02 Initializing connections... | |
2017/04/26 18:26:02 Initializing connection RaspberryPi-77EEC3CB ... | |
2017/04/26 18:26:02 Initializing devices... | |
2017/04/26 18:26:02 Initializing device ADS1x15-6235DFBD ... | |
2017/04/26 18:26:02 Robot ads1015bot initialized. | |
2017/04/26 18:26:02 Starting Robot ads1015bot ... | |
2017/04/26 18:26:02 Starting connections... | |
2017/04/26 18:26:02 Starting connection RaspberryPi-77EEC3CB... | |
2017/04/26 18:26:02 Starting devices... |
package main | |
import "fmt" | |
type tableServer struct { | |
table int | |
} | |
type TableServer interface { | |
SetTable(table int) |
package main | |
import ( | |
"math" | |
"sync/atomic" | |
"time" | |
"gobot.io/x/gobot" | |
"gobot.io/x/gobot/platforms/joystick" | |
"gobot.io/x/gobot/platforms/parrot/ardrone" |
package main | |
import ( | |
"math" | |
"time" | |
"gobot.io/x/gobot" | |
"gobot.io/x/gobot/platforms/joystick" | |
"gobot.io/x/gobot/platforms/parrot/ardrone" | |
) |
// Golang command line utility to generate an Microsoft Azure SAS token for use | |
// with the MS Azure IoT Hub. | |
// | |
// USAGE: USAGE: sastoken <URI> <key> <expiresInMins> [policy] | |
// | |
// Copyright © 2016 The Hybrid Group (http://hybridgroup.com) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the “Software”), to deal | |
// in the Software without restriction, including without limitation the rights |
Mon, 07 Mar 2016 19:47:05 GMT hci setting filter to: 1400000020c10000000000400000 | |
Mon, 07 Mar 2016 19:47:05 GMT hci set event mask - writing: 01010c08fffffbff07f8bf3d | |
Mon, 07 Mar 2016 19:47:05 GMT hci set le event mask - writing: 010120081f00000000000000 | |
Mon, 07 Mar 2016 19:47:05 GMT hci read local version - writing: 01011000 | |
Mon, 07 Mar 2016 19:47:05 GMT hci write LE host supported - writing: 016d0c020100 | |
Mon, 07 Mar 2016 19:47:05 GMT hci read LE host supported - writing: 016c0c00 | |
Mon, 07 Mar 2016 19:47:05 GMT hci read bd addr - writing: 01091000 | |
beginning | |
Mon, 07 Mar 2016 19:47:05 GMT hci onSocketData: 040e0402010c00 | |
Mon, 07 Mar 2016 19:47:05 GMT hci event type = 4 |
$ node examples/takeoff-events.js | |
ready | |
{} | |
FlyingStateChanged | |
takingOff | |
takingOff | |
BatteryStateChanged | |
28 | |
BatteryStateChanged | |
27 |