From 4c573b43f4889737aa3fd0830cf0572b4a3b4229 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Tue, 28 Mar 2017 17:35:27 +0200 Subject: [PATCH] i2c: add Humidity() to bme280 example Signed-off-by: deadprogram --- examples/firmata_bme280.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/firmata_bme280.go b/examples/firmata_bme280.go index 0b72f7c4..6b1c6ecc 100644 --- a/examples/firmata_bme280.go +++ b/examples/firmata_bme280.go @@ -26,6 +26,9 @@ func main() { p, _ := bme280.Pressure() fmt.Println("Pressure", p) + + h, _ := bme280.Humidity() + fmt.Println("Humidity", h) }) }