An open API service indexing awesome lists of open source software.

https://github.com/myfreax/esp32-adc

Analog to Digital Converter (ADC) Component For ESP32
https://github.com/myfreax/esp32-adc

Last synced: 2 months ago
JSON representation

Analog to Digital Converter (ADC) Component For ESP32

Awesome Lists containing this project

README

        

## ESP32 ADC Component
Analog to Digital Converter (ADC) Component For ESP32

## Usage
```
git submodule add [email protected]:myfreax/esp32-adc.git components/adc
```
```c
#include "adc.h"

void app_main(){
esp_adc_cal_characteristics_t* adc_chars =
adc_config(ADC1_CHANNEL_0, ADC_WIDTH_BIT_DEFAULT, 1100,
ADC_ATTEN_DB_11);
uint32_t voltage = adc_voltage(ADC1_CHANNEL_0, adc_chars);
}
```

## Example
The [ESP32 Example Project](https://github.com/myfreax/esp32-example-project) demonstrates how to use IDF framework build application of reusable component