mirror of
https://github.com/kidoman/embd
synced 2024-06-06 19:17:49 +02:00
Change reference from kidoman to embd
This commit is contained in:
parent
9e2da05935
commit
b79c284fea
|
@ -16,7 +16,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
type entryMode byte
|
type entryMode byte
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/util"
|
"github.com/wujiang/embd/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -3,7 +3,7 @@ package mcp3008
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MCP3008 represents a mcp3008 8bit DAC.
|
// MCP3008 represents a mcp3008 8bit DAC.
|
||||||
|
|
|
@ -122,6 +122,6 @@ func DetectHost() (host Host, rev int, err error) {
|
||||||
case strings.Contains(hardware, "BCM2708") || strings.Contains(hardware, "BCM2709"):
|
case strings.Contains(hardware, "BCM2708") || strings.Contains(hardware, "BCM2709"):
|
||||||
return HostRPi, rev, nil
|
return HostRPi, rev, nil
|
||||||
default:
|
default:
|
||||||
return HostNull, 0, fmt.Errorf(`embd: your host "%v:%v" is not supported at this moment. request support at https://github.com/kidoman/embd/issues`, host, model)
|
return HostNull, 0, fmt.Errorf(`embd: your host "%v:%v" is not supported at this moment. request support at https://github.com/wujiang/embd/issues`, host, model)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
18
doc.go
18
doc.go
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
Use the LED driver to toggle LEDs on the BBB:
|
Use the LED driver to toggle LEDs on the BBB:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/wujiang/embd"
|
||||||
...
|
...
|
||||||
embd.InitLED()
|
embd.InitLED()
|
||||||
defer embd.CloseLED()
|
defer embd.CloseLED()
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
Even shorter while prototyping:
|
Even shorter while prototyping:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/wujiang/embd"
|
||||||
...
|
...
|
||||||
embd.InitLED()
|
embd.InitLED()
|
||||||
defer embd.CloseLED()
|
defer embd.CloseLED()
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
BBB + PWM:
|
BBB + PWM:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/wujiang/embd"
|
||||||
...
|
...
|
||||||
embd.InitGPIO()
|
embd.InitGPIO()
|
||||||
defer embd.CloseGPIO()
|
defer embd.CloseGPIO()
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
Control GPIO pins on the RaspberryPi / BeagleBone Black:
|
Control GPIO pins on the RaspberryPi / BeagleBone Black:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/wujiang/embd"
|
||||||
...
|
...
|
||||||
embd.InitGPIO()
|
embd.InitGPIO()
|
||||||
defer embd.CloseGPIO()
|
defer embd.CloseGPIO()
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
Could also do:
|
Could also do:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/wujiang/embd"
|
||||||
...
|
...
|
||||||
embd.InitGPIO()
|
embd.InitGPIO()
|
||||||
defer embd.CloseGPIO()
|
defer embd.CloseGPIO()
|
||||||
|
@ -61,8 +61,8 @@
|
||||||
|
|
||||||
Or read data from the Bosch BMP085 barometric sensor:
|
Or read data from the Bosch BMP085 barometric sensor:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/wujiang/embd"
|
||||||
import "github.com/kidoman/embd/sensor/bmp085"
|
import "github.com/wujiang/embd/sensor/bmp085"
|
||||||
...
|
...
|
||||||
bus := embd.NewI2CBus(1)
|
bus := embd.NewI2CBus(1)
|
||||||
...
|
...
|
||||||
|
@ -73,8 +73,8 @@
|
||||||
|
|
||||||
Even find out the heading from the LSM303 magnetometer:
|
Even find out the heading from the LSM303 magnetometer:
|
||||||
|
|
||||||
import "github.com/kidoman/embd"
|
import "github.com/wujiang/embd"
|
||||||
import "github.com/kidoman/embd/sensor/lsm303"
|
import "github.com/wujiang/embd/sensor/lsm303"
|
||||||
...
|
...
|
||||||
bus := embd.NewI2CBus(1)
|
bus := embd.NewI2CBus(1)
|
||||||
...
|
...
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func detect(c *cli.Context) {
|
func detect(c *cli.Context) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version = "0.1.0"
|
var version = "0.1.0"
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
package all
|
package all
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/kidoman/embd/host/bbb"
|
_ "github.com/wujiang/embd/host/bbb"
|
||||||
_ "github.com/kidoman/embd/host/rpi"
|
_ "github.com/wujiang/embd/host/rpi"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
type analogPin struct {
|
type analogPin struct {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package bbb
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAnalogPinClose(t *testing.T) {
|
func TestAnalogPinClose(t *testing.T) {
|
||||||
|
|
|
@ -16,8 +16,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/host/generic"
|
"github.com/wujiang/embd/host/generic"
|
||||||
)
|
)
|
||||||
|
|
||||||
var pins = embd.PinMap{
|
var pins = embd.PinMap{
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/util"
|
"github.com/wujiang/embd/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -3,7 +3,7 @@ package bbb
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPWMPinClose(t *testing.T) {
|
func TestPWMPinClose(t *testing.T) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
type digitalPin struct {
|
type digitalPin struct {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package generic
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDigitalPinClose(t *testing.T) {
|
func TestDigitalPinClose(t *testing.T) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
type led struct {
|
type led struct {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
package rpi
|
package rpi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/host/generic"
|
"github.com/wujiang/embd/host/generic"
|
||||||
)
|
)
|
||||||
|
|
||||||
var spiDeviceMinor = byte(0)
|
var spiDeviceMinor = byte(0)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Key int
|
type Key int
|
||||||
|
|
|
@ -3,7 +3,7 @@ package servo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd/util"
|
"github.com/wujiang/embd/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
_ "github.com/kidoman/embd/host/rpi"
|
_ "github.com/wujiang/embd/host/rpi"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/bh1750fvi"
|
"github.com/wujiang/embd/sensor/bh1750fvi"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/bmp085"
|
"github.com/wujiang/embd/sensor/bmp085"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/bmp180"
|
"github.com/wujiang/embd/sensor/bmp180"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/controller/hd44780"
|
"github.com/wujiang/embd/controller/hd44780"
|
||||||
"github.com/kidoman/embd/interface/display/characterdisplay"
|
"github.com/wujiang/embd/interface/display/characterdisplay"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
_ "github.com/kidoman/embd/host/rpi"
|
_ "github.com/wujiang/embd/host/rpi"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -5,9 +5,9 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -6,10 +6,10 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/controller/hd44780"
|
"github.com/wujiang/embd/controller/hd44780"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -5,8 +5,9 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
"github.com/kidoman/embd"
|
|
||||||
"github.com/kidoman/embd/interface/keypad/matrix4x3"
|
"github.com/wujiang/embd"
|
||||||
|
"github.com/wujiang/embd/interface/keypad/matrix4x3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/l3gd20"
|
"github.com/wujiang/embd/sensor/l3gd20"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/bbb"
|
_ "github.com/wujiang/embd/host/bbb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/bbb"
|
_ "github.com/wujiang/embd/host/bbb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/lsm303"
|
"github.com/wujiang/embd/sensor/lsm303"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/convertors/mcp3008"
|
"github.com/wujiang/embd/convertors/mcp3008"
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/controller/mcp4725"
|
"github.com/wujiang/embd/controller/mcp4725"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/controller/pca9685"
|
"github.com/wujiang/embd/controller/pca9685"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/host/bbb"
|
"github.com/wujiang/embd/host/bbb"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/controller/pca9685"
|
"github.com/wujiang/embd/controller/pca9685"
|
||||||
"github.com/kidoman/embd/motion/servo"
|
"github.com/wujiang/embd/motion/servo"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/motion/servo"
|
"github.com/wujiang/embd/motion/servo"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd/controller/servoblaster"
|
"github.com/wujiang/embd/controller/servoblaster"
|
||||||
"github.com/kidoman/embd/motion/servo"
|
"github.com/wujiang/embd/motion/servo"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -8,8 +8,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
_ "github.com/kidoman/embd/host/rpi" // This loads the RPi driver
|
_ "github.com/wujiang/embd/host/rpi" // This loads the RPi driver
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -5,8 +5,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/tmp006"
|
"github.com/wujiang/embd/sensor/tmp006"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/us020"
|
"github.com/wujiang/embd/sensor/us020"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
"github.com/kidoman/embd/sensor/watersensor"
|
"github.com/wujiang/embd/sensor/watersensor"
|
||||||
|
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/wujiang/embd/host/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
//accuracy = sensorValue/actualValue] (min = 0.96, typ = 1.2, max = 1.44
|
//accuracy = sensorValue/actualValue] (min = 0.96, typ = 1.2, max = 1.44
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/kidoman/embd"
|
"github.com/wujiang/embd"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WaterSensor represents a water sensor.
|
// WaterSensor represents a water sensor.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user