mirror of
https://github.com/kidoman/embd
synced 2025-07-03 20:07:40 +02:00
OneWire bus impl - changed imports to the original ones so that merge is possible
This commit is contained in:
parent
82f119fadb
commit
14009091a0
69 changed files with 179 additions and 178 deletions
|
@ -2,6 +2,6 @@
|
|||
package all
|
||||
|
||||
import (
|
||||
_ "github.com/zlowred/embd/host/bbb"
|
||||
_ "github.com/zlowred/embd/host/rpi"
|
||||
_ "github.com/kidoman/embd/host/bbb"
|
||||
_ "github.com/kidoman/embd/host/rpi"
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
type analogPin struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package bbb
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
func TestAnalogPinClose(t *testing.T) {
|
||||
|
|
|
@ -16,8 +16,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/zlowred/embd/host/generic"
|
||||
"github.com/kidoman/embd"
|
||||
"github.com/kidoman/embd/host/generic"
|
||||
)
|
||||
|
||||
var pins = embd.PinMap{
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/zlowred/embd/util"
|
||||
"github.com/kidoman/embd"
|
||||
"github.com/kidoman/embd/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -3,7 +3,7 @@ package bbb
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
func TestPWMPinClose(t *testing.T) {
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
type digitalPin struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package generic
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
func TestDigitalPinClose(t *testing.T) {
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"unsafe"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"sync"
|
||||
"syscall"
|
||||
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
type led struct {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"unsafe"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/kidoman/embd"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,13 +5,14 @@
|
|||
GPIO (digital (rw))
|
||||
I²C
|
||||
LED
|
||||
W1 - make sure that w1-gpio kernel module is loaded. If you wish to use it with sensors directly (e.g. DS18B20 etc) make sure to disable respective kernel modules (e.g. w1-therm) in /etc/modprobe.d/blacklist.conf.
|
||||
W1 - make sure that w1-gpio kernel module is loaded. If you wish to use it with sensors directly (e.g. DS18B20 etc)
|
||||
make sure to disable respective kernel modules (e.g. w1-therm) in /etc/modprobe.d/blacklist.conf.
|
||||
*/
|
||||
package rpi
|
||||
|
||||
import (
|
||||
"github.com/zlowred/embd"
|
||||
"github.com/zlowred/embd/host/generic"
|
||||
"github.com/kidoman/embd"
|
||||
"github.com/kidoman/embd/host/generic"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue