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
- Host: GitHub
- URL: https://github.com/myfreax/esp32-adc
- Owner: myfreax
- Created: 2023-05-11T07:43:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T07:01:01.000Z (about 1 year ago)
- Last Synced: 2024-05-31T15:48:44.694Z (11 months ago)
- Language: C
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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