esp-hal/esp32s2-hal/src/dac.rs
Björn Quentin 7e25eebd8d
Implement DAC support for ESP32/ESP32-S2 (#92)
* Implement DAC support for ESP32/ESP32-S2
* Adapt the DAC samples after rebase
2022-06-30 11:57:16 -07:00

11 lines
323 B
Rust

//! Digital to analog (DAC) conversion.
//!
//! This module provides functions for controling two digital to
//! analog converters, available on ESP32-S2: `DAC1` and `DAC2`.
//!
//! The DAC1 is available on the GPIO pin 17, and DAC2 on pin 18.
use esp_hal_common::{impl_dac, paste};
impl_dac!(1 => Gpio17, 2 => Gpio18,);