Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on esphhome 2022.12 #4

Open
dronix27 opened this issue Dec 17, 2022 · 0 comments
Open

Compilation error on esphhome 2022.12 #4

dronix27 opened this issue Dec 17, 2022 · 0 comments

Comments

@dronix27
Copy link

src/esphome/components/m5paper/m5paper.cpp: In member function 'virtual void esphome::m5paper::M5PaperComponent::setup()':
src/esphome/components/m5paper/m5paper.cpp:33:31: error: 'ADC1_GPIO35_CHANNEL' was not declared in this scope
adc1_config_channel_atten(ADC1_GPIO35_CHANNEL, ADC_ATTEN_DB_11);
^~~~~~~~~~~~~~~~~~~
src/esphome/components/m5paper/m5paper.cpp:33:31: note: suggested alternative: 'ADC1_CHANNEL_7'
adc1_config_channel_atten(ADC1_GPIO35_CHANNEL, ADC_ATTEN_DB_11);
^~~~~~~~~~~~~~~~~~~
ADC1_CHANNEL_7
src/esphome/components/m5paper/m5paper.cpp: In member function 'virtual void esphome::m5paper::M5PaperComponent::update()':
src/esphome/components/m5paper/m5paper.cpp:53:39: error: 'ADC1_GPIO35_CHANNEL' was not declared in this scope
adc_raw_value += adc1_get_raw(ADC1_GPIO35_CHANNEL);
^~~~~~~~~~~~~~~~~~~
src/esphome/components/m5paper/m5paper.cpp:53:39: note: suggested alternative: 'ADC1_CHANNEL_7'
adc_raw_value += adc1_get_raw(ADC1_GPIO35_CHANNEL);
^~~~~~~~~~~~~~~~~~~
ADC1_CHANNEL_7
*** [/data/m5paper/.pioenvs/m5paper/src/esphome/components/m5paper/m5paper.cpp.o] Error 1
========================= [FAILED] Took 18.52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant