Loading files
#if defined(ESP32)
#include "Hal/Adc.hpp"
#include <Arduino.h>
namespace Espfc::Hal {
void Adc::begin(uint8_t pin)
{
::analogReadResolution(12);
}
uint16_t Adc::read(uint8_t pin)
{
return ::analogRead(pin);
}
} // namespace Espfc::Hal
#endif
c04356942This file is pinned to the selected release. Download the original to open it in your design tool.