1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 11:57:38 +02:00

fix a bunch of build errors

This commit is contained in:
Karan Misra 2014-03-02 12:09:57 +05:30
parent 026f5fe3f3
commit 4e67e7eb11
7 changed files with 105 additions and 67 deletions

View file

@ -12,7 +12,7 @@ func init() {
func describer(rev int) *host.Descriptor {
var pins = rev1Pins
if d.rev > 1 {
if rev > 1 {
pins = rev2Pins
}
@ -20,6 +20,8 @@ func describer(rev int) *host.Descriptor {
GPIO: func() interface{} {
return lgpio.New(pins)
},
I2C: li2c.New,
I2C: func() interface{} {
return li2c.New()
},
}
}