1
0
mirror of https://github.com/kidoman/embd synced 2024-06-01 08:38:05 +02:00
embd/host/generic
Wu Jiang b02fcae87d Give rpi some time to link digital pin property
It looks like Raspberry pi needs some time to get a digital pin
link properly after it is being exported.

Sample code to run:

```go
package main

import (
        "fmt"

        "github.com/kidoman/embd"
         _ "github.com/kidoman/embd/host/rpi"
)

func main() {
        defer embd.CloseGPIO()
        fmt.Println(embd.SetDirection(10, embd.Out))
}

```

- before the change, the output is:
`open /sys/class/gpio/gpio10/direction: permission denied`

- after the change, the output is `<nil>`

Close #52
2016-01-21 15:42:27 -05:00
..
digitalpin_test.go host specific drivers can now be loaded separately 2014-04-06 06:50:09 +05:30
digitalpin.go Give rpi some time to link digital pin property 2016-01-21 15:42:27 -05:00
doc.go host specific drivers can now be loaded separately 2014-04-06 06:50:09 +05:30
i2cbus.go i2c: added debug logs 2014-04-10 07:38:14 +05:30
interrupt.go gpio: consistent naming 2015-01-15 05:35:21 +05:30
led.go host specific drivers can now be loaded separately 2014-04-06 06:50:09 +05:30
spibus.go Fix typo 2015-12-22 12:54:33 -05:00