mirror of
https://github.com/kidoman/embd
synced 2024-06-01 08:38:05 +02:00
b02fcae87d
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 |
||
---|---|---|
.. | ||
digitalpin_test.go | ||
digitalpin.go | ||
doc.go | ||
i2cbus.go | ||
interrupt.go | ||
led.go | ||
spibus.go |