Commit 85b87959 authored by Marek Matej's avatar Marek Matej Committed by Fabio Baltieri
Browse files

samples: board: esp32: DAC sample code



Sample code demonstrate the DAC on ESP32 and ESP32-S2

Signed-off-by: default avatarMarek Matej <marek.matej@espressif.com>
parent f86a7d2c
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
/*
 * Copyright 2022 Espressif (Shanghai)
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	zephyr,user {
		dac = <&dac>;
		dac-channel-id = <0>;
		dac-resolution = <8>;
	};
};

&dac {
	status = "okay";
};
+17 −0
Original line number Diff line number Diff line
/*
 * Copyright 2022 Espressif (Shanghai)
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	zephyr,user {
		dac = <&dac>;
		dac-channel-id = <0>;
		dac-resolution = <8>;
	};
};

&dac {
	status = "okay";
};
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ tests:
      nucleo_f091rc nucleo_f207zg stm32f3_disco nucleo_f429zi nucleo_f746zg
      nucleo_f767zi nucleo_g071rb nucleo_g431rb nucleo_g474re nucleo_h743zi
      nucleo_l073rz nucleo_l152re disco_l475_iot1 stm32l562e_dk nucleo_l552ze_q
      b_u585i_iot02a nucleo_wl55jc
      b_u585i_iot02a nucleo_wl55jc esp32 esp32s2_saola
    depends_on: dac
    harness: console
    harness_config: