Implement DAC based on ESP-IDF API (#5959)

This PR is refactoring of DAC HAL in order to use IDF instead of current Register manipulation approach.

Edited dacWrite() to use ESP-IDF api.
Added dacDisable() so there is an option to disable dac channel.

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
This commit is contained in:
P-R-O-C-H-Y
2021-12-14 20:10:30 +01:00
committed by GitHub
parent 40a5c1e461
commit 39b9e1e533
2 changed files with 21 additions and 34 deletions

View File

@ -28,6 +28,7 @@ extern "C" {
#include "driver/gpio.h"
void dacWrite(uint8_t pin, uint8_t value);
void dacDisable(uint8_t pin);
#ifdef __cplusplus
}