1
0
Fork 0
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:
Ryan Cox 2014-10-22 09:07:12 -07:00
parent 9a96639962
commit 3f7fe59036
2 changed files with 89 additions and 22 deletions

View file

@ -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()