import "mind/core/framework/drivers/adc"

Package adc provides an API to interface with ADC's.

Example: Read current ADC value from pin 0.

pinVal, _ := adc.Value(0)


func Available

func Available() bool

Available returns whether driver is available or not.

func Close

func Close() (err error)

Close makes sure the ADC Driver is closed.

func Start

func Start() (err error)

Start makes sure ADC Driver is ready.

func Value

func Value(pin int) (val float64, err error)

Value returns measured voltage value on pin within range 0-3.