Library dac

To use this library in your code:

import gpio.dac
Digital-to-Analog Conversion.
This library provides ways to output analog voltages on the GPIO pins that support it.
On the ESP32, pins 25 and 26 have an ADC converter.
Examples

import gpio.dac show Dac

main:
  dac := Dac 25
  dac.set 2.3
  sleep --ms=1_000
  dac.close

Classes

Digital-to-Analog channel for generating a voltage on a GPIO pin.

Functions

dac-cosine-wave resource/any scale/any phase/any frequency/any offset/any -> any