scd4x: implement driver for CO2 sensor

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2022-04-30 17:24:54 +02:00
committed by Ron Evans
parent dbff576c9e
commit c235509580
5 changed files with 259 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package scd4x
import (
"testing"
qt "github.com/frankban/quicktest"
"tinygo.org/x/drivers/tester"
)
func TestDefaultI2CAddress(t *testing.T) {
c := qt.New(t)
bus := tester.NewI2CBus(c)
dev := New(bus)
c.Assert(dev.Address, qt.Equals, uint8(Address))
}