1
0
mirror of https://github.com/kidoman/embd synced 2024-12-23 05:10:05 +01:00
embd/samples/analogshort.go

18 lines
201 B
Go
Raw Normal View History

2014-03-23 05:14:25 +05:30
// +build ignore
package main
import (
"fmt"
"github.com/kidoman/embd"
)
func main() {
embd.InitGPIO()
defer embd.CloseGPIO()
val, _ := embd.AnalogRead(0)
fmt.Printf("Reading: %v\n", val)
}