Hi there,
my first steps into the ESPHome world drive me nuts. For my projects I want a Raspberry Pico W and a Pico OLED 1.3 display get going. The OLED display is a SH1107 controller with 64x128 pixels (see https://www.waveshare.com/wiki/Pico-OLED-1.3?Amazon). To be sure, the Pico is working right, I tested home assistant integration with the onboard LED of the Pico first. This works as expected. But the display doesn’t. Nothing shows up. The Pico doesn’t even show up in the network anymore (ping). “esphome run picodemo.yaml” compiles and flashes, but can’t connect afterwards.
Here’s my code:
esphome:
name: picodemo
rp2040:
board: rpipicow
framework:
platform_version: https://github.com/maxgerhardt/platform-raspberrypi.git
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
ota:
password: ""
wifi:
ssid: "MyWIFI"
password: "wifipassword"
switch:
- platform: gpio
name: "Pico Onboard LED"
pin: LED
# OLED configuration entry
i2c:
sda: GPIO6
scl: GPIO7
scan: true
font:
- file:
type: gfonts
family: Roboto
weight: 900
id: oled_font
size: 16
display:
- platform: ssd1306_i2c
model: 'SH1107_128x64'
address: 0x3C
id: oled_display
lambda: |-
it.print(0, 0, id(oled_font), "Hello World!");