esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

RP2040_pwm: PwmOut.h: No such file or directory #3820

Closed ftrueck closed 1 year ago

ftrueck commented 1 year ago

The problem

compiling with pwm included throws a fatal error:

In file included from src\esphome\components\rp2040_pwm\rp2040_pwm.cpp:3: src\esphome\components\rp2040_pwm\rp2040_pwm.h:10:10: fatal error: drivers/PwmOut.h: No such file or directory 10 | #include "drivers/PwmOut.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. *** [.pioenvs\tagreader\src\esphome\components\rp2040_pwm\rp2040_pwm.cpp.o] Error 1

Which version of ESPHome has the issue?

2022.11.1

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

-

What platform are you using?

RP2040

Board

rpipicow

Component causing the issue

rp2040_pwm

Example YAML snippet

output:
- platform: rp2040_pwm
  pin: 10
  id: buzzer

Anything in the logs that might be useful for us?

Building in release mode
Compiling .pioenvs\tagreader\src\esphome\components\rp2040_pwm\rp2040_pwm.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\switch\automation.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\switch\switch.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\template\switch\template_switch.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\text_sensor\filter.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\text_sensor\text_sensor.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\version\version_text_sensor.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\wifi\wifi_component.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\wifi\wifi_component_esp32_arduino.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\wifi\wifi_component_esp8266.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\wifi\wifi_component_esp_idf.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\wifi\wifi_component_pico_w.cpp.o
Compiling .pioenvs\tagreader\src\esphome\components\wifi_info\wifi_info_text_sensor.cpp.o
Compiling .pioenvs\tagreader\src\esphome\core\application.cpp.o
Compiling .pioenvs\tagreader\src\esphome\core\color.cpp.o
Compiling .pioenvs\tagreader\src\esphome\core\component.cpp.o
In file included from src\esphome\components\rp2040_pwm\rp2040_pwm.cpp:3:
src\esphome\components\rp2040_pwm\rp2040_pwm.h:10:10: fatal error: drivers/PwmOut.h: No such file or directory
   10 | #include "drivers/PwmOut.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs\tagreader\src\esphome\components\rp2040_pwm\rp2040_pwm.cpp.o] Error 1
============================================== [FAILED] Took 7.37 seconds ==============================================

Additional information

No response

jesserockz commented 1 year ago

Thanks for the report. I will take a look