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

led: support led functionality on the bbb

This commit is contained in:
Karan Misra 2014-03-23 06:25:32 +05:30
parent f7b316332e
commit bf8a4be4d9
9 changed files with 322 additions and 3 deletions

4
i2c.go
View file

@ -37,6 +37,10 @@ func InitI2C() error {
return err
}
if desc.I2C == nil {
return ErrFeatureNotSupport
}
i2cInstance = desc.I2C()
return nil