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:
parent
f7b316332e
commit
bf8a4be4d9
9 changed files with 322 additions and 3 deletions
4
i2c.go
4
i2c.go
|
@ -37,6 +37,10 @@ func InitI2C() error {
|
|||
return err
|
||||
}
|
||||
|
||||
if desc.I2C == nil {
|
||||
return ErrFeatureNotSupport
|
||||
}
|
||||
|
||||
i2cInstance = desc.I2C()
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue