mirror of
https://github.com/kidoman/embd
synced 2025-07-03 11:57:38 +02:00
make the framework easier to begin with
This commit is contained in:
parent
ef87ad7879
commit
3d08995000
26 changed files with 237 additions and 170 deletions
|
@ -3,8 +3,7 @@ package rpi
|
|||
import (
|
||||
lgpio "github.com/kidoman/embd/driver/linux/gpio"
|
||||
li2c "github.com/kidoman/embd/driver/linux/i2c"
|
||||
"github.com/kidoman/embd/gpio"
|
||||
"github.com/kidoman/embd/i2c"
|
||||
"github.com/kidoman/embd/host"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -18,7 +17,7 @@ func describer(rev int) *host.Descriptor {
|
|||
}
|
||||
|
||||
return &host.Descriptor{
|
||||
GPIO: func() gpio.GPIO {
|
||||
GPIO: func() interface{} {
|
||||
return lgpio.New(pins)
|
||||
},
|
||||
I2C: li2c.New,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue