Closed gepatto closed 1 year ago
Same issue on Linux:
(esp_venv) $:~/projects/pico-esphome$ esphome version
Version: 2022.12.3
(esp_venv) $:~/projects/pico-esphome$ python --version
Python 3.10.6
You need:
rp2040:
board: pico
framework:
platform_version: https://github.com/maxgerhardt/platform-raspberrypi.git
Thanks for raising this issue @gepatto as I was struggling with this too and thought I'd tried everything. As @ssieb commented, the fix is to override the platform_version. This will be required until https://github.com/platformio/platform-raspberrypi/pull/36 is merged.
It looks like you're using a Pico W so there's a couple of other changes to your YAML you'll need as well. The "board" for Pico W is "rpipicow" and the on-board LED is accessed via GPIO pin 32 rather than 25 for the Pico.
See @geerlingguy's https://github.com/geerlingguy/pico-w-garage-door-sensor/blob/master/led-blink.yml for an updated led-blink.yml for the Pico W.
Thank you ! @ssieb and @grokbeer . It's working now :)
The problem
Esphome installed through pip on a Mac M1 (Ventura 13.1) throws:
fatal error: Arduino.h: No such file or directory
when compiling for the rp2040Tried reinstalling and installing with brew as an alternative, but gives the same error.
Which version of ESPHome has the issue?
2022.12.3
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
No response
What platform are you using?
RP2040
Board
picow
Component causing the issue
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
FIles in the build directory:
Generated platformio.ini