Skip to content

Instantly share code, notes, and snippets.

@krzychb
krzychb / adc1_check.c
Created February 18, 2018 20:18
Check ADC of ESP32 by making series of measurements with stable input voltage. Print differences in % from the average.
/* ADC1 Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <stdlib.h>