1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-04 20:37:46 +02:00

Standalone fork no longer dependant on the original.

This commit is contained in:
clinton 2017-05-20 18:36:48 +10:00
parent d3a9b3ff21
commit 9a25ce11c3
72 changed files with 187 additions and 187 deletions

View file

@ -2,7 +2,7 @@
package all
import (
_ "github.com/kidoman/embd/host/bbb"
_ "github.com/kidoman/embd/host/edison"
_ "github.com/kidoman/embd/host/rpi"
_ "github.com/cfreeman/embd/host/bbb"
_ "github.com/cfreeman/embd/host/edison"
_ "github.com/cfreeman/embd/host/rpi"
)

View file

@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
type analogPin struct {

View file

@ -3,7 +3,7 @@ package bbb
import (
"testing"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
func TestAnalogPinClose(t *testing.T) {

View file

@ -16,8 +16,8 @@ import (
"strings"
"github.com/golang/glog"
"github.com/kidoman/embd"
"github.com/kidoman/embd/host/generic"
"github.com/cfreeman/embd"
"github.com/cfreeman/embd/host/generic"
)
var pins = embd.PinMap{

View file

@ -11,8 +11,8 @@ import (
"time"
"github.com/golang/glog"
"github.com/kidoman/embd"
"github.com/kidoman/embd/util"
"github.com/cfreeman/embd"
"github.com/cfreeman/embd/util"
)
const (

View file

@ -3,7 +3,7 @@ package bbb
import (
"testing"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
func TestPWMPinClose(t *testing.T) {

View file

@ -1,7 +1,7 @@
# Using embd on CHIP
The CHIP drivers support gpio, I2C, SPI, and pin interrupts. Not supported are PWM or LED.
The names of the pins on chip have multiple aliases. The official CHIP pin names are supported,
The names of the pins on chip have multiple aliases. The official CHIP pin names are supported,
for example XIO-P1 or LCD-D2 and the pin number are also supported, such as U14-14 (same as XIO-P1)
or U13-17. Some of the alternate function names are also supported, like "SPI2_MOSI", and the
linux 4.4 kernel gpio pin numbers as well, e.g., 1017 for XIO-P1. Finally, the official GPIO pins
@ -13,8 +13,8 @@ A simple demo to blink an LED connected with a small resistor between XIO-P6 and
package main
import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/chip"
"github.com/cfreeman/embd"
_ "github.com/cfreeman/embd/host/chip"
)
func main() {

View file

@ -14,8 +14,8 @@
package chip
import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/host/generic"
"github.com/cfreeman/embd"
"github.com/cfreeman/embd/host/generic"
)
var spiDeviceMinor = 32766

View file

@ -4,8 +4,8 @@
package edison
import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/host/generic"
"github.com/cfreeman/embd"
"github.com/cfreeman/embd/host/generic"
)
var pins = embd.PinMap{

View file

@ -13,7 +13,7 @@ import (
"syscall"
"time"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
type digitalPin struct {

View file

@ -3,7 +3,7 @@ package generic
import (
"testing"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
func TestDigitalPinClose(t *testing.T) {

View file

@ -12,7 +12,7 @@ import (
"unsafe"
"github.com/golang/glog"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
const (

View file

@ -8,7 +8,7 @@ import (
"sync"
"syscall"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
const (

View file

@ -8,7 +8,7 @@ import (
"os"
"strings"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
type led struct {

View file

@ -8,7 +8,7 @@ import (
"unsafe"
"github.com/golang/glog"
"github.com/kidoman/embd"
"github.com/cfreeman/embd"
)
const (

View file

@ -9,8 +9,8 @@
package rpi
import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/host/generic"
"github.com/cfreeman/embd"
"github.com/cfreeman/embd/host/generic"
)
var spiDeviceMinor = 0