I am trying to configure a MakerHawk ESP8266 WiFi Development Board with 0.91 Inch ESP8266 OLED Display for use with ESPHome. I have flashed ESPHome, and the device shows up in the ESPHome dashboard.
According to the pinout:
- oled_sda = D2
- oled_scl = D14
When I try to validate the .yaml configuration file, I get the following error:
INFO Reading configuration...
Failed config
i2c:
- [source /config/esphome/kitchen_timer_display.yaml:25]
sda: D2
Cannot resolve pin name 'D14' for board nodemcuv2.
scl: D14 [source /config/esphome/kitchen_timer_display.yaml:26]
Any suggestions, please?
Here is the .yaml config file.
# Substitutions
substitutions:
devicename: kitchen_timer_display
esphome:
name: $devicename
platform: ESP8266
board: nodemcuv2
# Enable WiFi
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pwd
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
# Display configuration
i2c:
sda: D2
scl: D14
font:
- file: "Product Sans Regular.ttf"
id: product_sans
size: 20
display:
- platform: ssd1306_i2c
model: "SSD1306 128x32"
reset_pin: D4
address: 0x3C
lambda: |-
it.print(0, 0, id(product_sans), "Hello World!");
I also tried board: nodemcu, since this for Arduino says “In the Arduino IDE, in the Tools > Board menu choose NodeMCU 1.0 (ESP-12E Module)”. That did not have any affect on the validation error.