first commit

This commit is contained in:
pandacraft 2025-03-21 16:04:17 +01:00
commit a5a0434432
1126 changed files with 439481 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package main
import (
"github.com/JGrotex/GrovePi/Software/Go/grovepi"
"fmt"
)
func runDHT() string {
var g grovepi.GrovePi
g = *grovepi.InitGrovePi(0x04)
defer g.CloseDevice()
t, h, err := g.ReadDHT(grovepi.D4)
if err != nil {
panic(err)
}
fmt.Printf("Temperature: %f - Humidity: %f\n", t, h)
return "done"
}