Всем привет, пытаюсь завести oled дисплей на ssd1306 по i2c, уже три дня ничего не выходит, что я делаю не так? Дисплей рабочий, подключение проверял, плата nodemcu wemos
https://pastebin.com/mk2UFjjY
Лень смотреть код. Инициализация для такого дисплея:
static const uint8_t ssd_init[] PROGMEM = {
OLED_CMD_DISPLAY_OFF, // Display off
0x20, // Set Memory Addressing Mode
0x10, // 00,Horizontal Addressing Mode;01,Vertical Addressing Mode;10,Page Addressing Mode (RESET,11,Invalid
0xB0, // Set Page Start Address for Page Addressing Mode,0-7
0xC8, // Set COM Output Scan Direction
0x00, // Set low column address
0x10, // Set high column address
0x40, // Set start line address
0x81, // set contrast control register
0xFF,
#ifdef SSD1306_COM_TB_REMAP
0xA1, // Set segment re-map 0 to 127
#else
0xA0, // Set segment re-map 0 to 127
#endif
0xA6, // Set normal display
0xA8, // Set multiplex ratio(1 to 64)
#ifdef MEM_EVEN_BIT_ONLY
63, //for 32 pixel height!
#else
(HEIGHT-1),
#endif
0xA4, // 0xa4,Output follows RAM content;0xa5,Output ignores RAM content
0xD3, // Set display offset
0x00, // No offset
0xD5, // Set display clock divide ratio/oscillator frequency
0xF0, // Set divide ratio
0xD9, // Set pre-charge period
0x22,
0xDA, // Set com pins hardware configuration
#ifdef SSD1306_COM_LR_REMAP
0x32, // Enable COM left/right remap
#else
0x12, // Do not use COM left/right remap
#endif // SSD1306_COM_LR_REMAP
0xDB, // Set vcomh
0x20, // 0x20,0.77xVcc
0x8D, // Set DC-DC enable
0x14, //
OLED_CMD_DISPLAY_ON // Turn on SSD1306 panel
};