Hi, I’m trying to get an SSD1306 oled working with my Wemos D1 mini ESP8266. The particular OLED I have has and SCK instead SCL. I’ve tried following this guide: Time & Temperature on OLED Display — ESPHome
I have the same OLED as this guy
I have hooked up the SSD1306 as follows:
GND-GND (I’ve got my temp sensor connected here as well)
VDD-3 Volts (I’ve got my temp sensor and two diodes connected here as well)
SCK-D1 (GPIO05)
SCL-D2 (GPIO04)
These entries from the full log below were interesting:
[19:45:34][E][i2c.arduino:177]: Recovery failed: SCL is held LOW on the I2C bus
[19:45:44][C][i2c.arduino:047]: Recovery: failed, SCL is held low on the bus
[19:45:45][E][ssd1306_i2c:036]: Communication with SSD1306 failed!
Flashing the esp8266 with ESPFlasher gives the following logs (removed the things relating to MQTT, network, LEDs, temp sensor etc):
Showing logs:
[19:45:34][I][logger:214]: Log initialized
[19:45:34][C][ota:461]: There have been 3 suspected unsuccessful boot attempts.
[19:45:34][I][app:029]: Running through setup()...
[19:45:34][I][i2c.arduino:161]: Performing I2C bus recovery
[19:45:34][E][i2c.arduino:177]: Recovery failed: SCL is held LOW on the I2C bus
[19:45:34][C][dallas.sensor:032]: Setting up DallasComponent...
[19:45:34][E][dallas.sensor:191]: Reading scratchpad failed: reset
[19:45:34][C][ssd1306_i2c:010]: Setting up I2C SSD1306...
[19:45:34][E][component:112]: Component ssd1306_base was marked as failed.
[19:45:44][C][api:025]: Setting up Home Assistant API server...
[19:45:44][I][app:062]: setup() finished successfully!
[19:45:44]'
[19:45:44][I][app:102]: ESPHome version 2022.3.1 compiled on Jun 16 2022, 19:05:38
[19:45:44][C][logger:233]: Logger:
[19:45:44][C][logger:234]: Level: DEBUG
[19:45:44][C][logger:235]: Log Baud Rate: 115200
[19:45:44][C][logger:236]: Hardware UART: UART0
[19:45:44][C][i2c.arduino:038]: I2C Bus:
[19:45:44][C][i2c.arduino:039]: SDA Pin: GPIO4
[19:45:44][C][i2c.arduino:040]: SCL Pin: GPIO5
[19:45:44][C][i2c.arduino:041]: Frequency: 50000 Hz
[19:45:44][C][i2c.arduino:047]: Recovery: failed, SCL is held low on the bus
[19:45:44][I][i2c.arduino:054]: Results from i2c bus scan:
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x08
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x09
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x0A
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x0B
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x0C
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x0D
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x0E
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x0F
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x10
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x11
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x12
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x13
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x14
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x15
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x16
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x17
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x18
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x19
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x1A
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x1B
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x1C
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x1D
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x1E
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x1F
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x20
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x21
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x22
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x23
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x24
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x25
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x26
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x27
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x28
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x29
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x2A
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x2B
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x2C
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x2D
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x2E
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x2F
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x30
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x31
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x32
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x33
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x34
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x35
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x36
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x37
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x38
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x39
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x3A
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x3B
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x3C
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x3D
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x3E
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x3F
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x40
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x41
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x42
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x43
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x44
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x45
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x46
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x47
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x48
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x49
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x4A
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x4B
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x4C
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x4D
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x4E
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x4F
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x50
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x51
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x52
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x53
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x54
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x55
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x56
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x57
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x58
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x59
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x5A
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x5B
[19:45:44][E][i2c.arduino:062]: Unknown error at address 0x5C
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x5D
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x5E
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x5F
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x60
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x61
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x62
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x63
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x64
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x65
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x66
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x67
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x68
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x69
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x6A
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x6B
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x6C
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x6D
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x6E
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x6F
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x70
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x71
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x72
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x73
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x74
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x75
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x76
[19:45:45][E][i2c.arduino:062]: Unknown error at address 0x77
[19:45:45][C][homeassistant.time:010]: Home Assistant Time:
[19:45:45][C][homeassistant.time:011]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[19:45:45][C][ssd1306_i2c:023]: I2C SSD1306
[19:45:45][C][ssd1306_i2c:023]: Rotations: 0 °
[19:45:45][C][ssd1306_i2c:023]: Dimensions: 128px x 64px
[19:45:45][C][ssd1306_i2c:024]: Address: 0x3C
[19:45:45][C][ssd1306_i2c:025]: Model: SSD1306 128x64
[19:45:45][C][ssd1306_i2c:027]: External VCC: NO
[19:45:45][C][ssd1306_i2c:028]: Flip X: YES
[19:45:45][C][ssd1306_i2c:029]: Flip Y: YES
[19:45:45][C][ssd1306_i2c:030]: Offset X: 0
[19:45:45][C][ssd1306_i2c:031]: Offset Y: 0
[19:45:45][C][ssd1306_i2c:032]: Inverted Color: NO
[19:45:45][C][ssd1306_i2c:033]: Update Interval: 1.0s
[19:45:45][E][ssd1306_i2c:036]: Communication with SSD1306 failed!
[19:45:45][C][captive_portal:088]: Captive Portal:
[19:45:45][C][homeassistant.sensor:030]: Homeassistant Sensor 'inside_temperature'
[19:45:45][C][homeassistant.sensor:030]: State Class: ''
[19:45:45][C][homeassistant.sensor:030]: Unit of Measurement: ''
[19:45:45][C][homeassistant.sensor:030]: Accuracy Decimals: 1
[19:45:45][C][homeassistant.sensor:031]: Entity ID: 'sensor.mellanvaning_temperature'
Any idea as to what could be wrong?