11#include "sygah-endpoints.hpp"
12#include "sygah-metadata.hpp"
13#include "syghe-pins.hpp"
15namespace sygaldry {
namespace sygse {
24 slider<
"raw",
"raw binary representation of the analog voltage measured by the ADC"
34 void init(
int gpio_num,
outputs_t& outputs);
49template<syghe::AdcChannel gpio_num>
51:
name_<"ESP32 Oneshot ADC">
53,
copyright_<"Copyright 2023 Sygaldry Contributors">
54,
license_<"SPDX-License-Identifier: MIT">
61 void init() {pimpl.init(gpio_num, outputs);}
64 void main() {pimpl.main(outputs);}
Document the author of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:39
Document the copyright statement of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:47
Document the copyright license of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:45
Document the name of an entity, e.g. an endpoint, component, or binding.
Definition sygah-metadata.hpp:33
A numeric endpoint with user customizeable range and persistent value semantics.
Definition sygah-endpoints.hpp:348
Output endpoints for OneshotAdc.
Definition sygse-adc.hpp:23
Driver component for the analog-digital converter.
Definition sygse-adc.hpp:55
void main()
Poll the current value of the given ADC1 channel.
Definition sygse-adc.hpp:64
void init()
Configure the ADC1 channel for the given gpio_num in oneshot read mode.
Definition sygse-adc.hpp:61
Definition sygse-adc.hpp:31