mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
Add support for isl29125 RGB light sensor
This commit is contained in:
parent
9a96639962
commit
3f7fe59036
2 changed files with 89 additions and 22 deletions
|
@ -7,9 +7,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/kidoman/embd"
|
||||
"github.com/kidoman/embd/sensor/isl29125"
|
||||
|
||||
_ "github.com/kidoman/embd/host/all"
|
||||
"github.com/kidoman/embd/sensor/isl29125"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -23,6 +22,7 @@ func main() {
|
|||
|
||||
isl := isl29125.New(isl29125.DefaultConfig, bus)
|
||||
defer isl.Close()
|
||||
isl.Init()
|
||||
|
||||
for {
|
||||
r, err := isl.Reading()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue