lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
676 stars 127 forks source link

Error compiling ssd1306_demo #159

Open sidtupper opened 11 months ago

sidtupper commented 11 months ago

Describe the bug Compile error in ssd1306_demo

E:\Documents\Arduino\libraries\ssd1306\src\intf\vga\esp32\CompositeOutput.cpp: In member function 'void CompositeOutput::check_buffer()': E:\Documents\Arduino\libraries\ssd1306\src\intf\vga\esp32\CompositeOutput.cpp:280:9: error: 'i2s_write_bytes' was not declared in this scope i2s_write_bytes(I2S_PORT, (char)line, sizeof(uint16_t) (m_end - line), &bytes_written, portMAX_DELAY); ^~~~~~~ E:\Documents\Arduino\libraries\ssd1306\src\intf\vga\esp32\CompositeOutput.cpp:280:9: note: suggested alternative: 'i2s_write_expand' i2s_write_bytes(I2S_PORT, (char)line, sizeof(uint16_t) (m_end - line), &bytes_written, portMAX_DELAY); ^~~~~~~ i2s_write_expand

exit status 1

Compilation error: exit status 1

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information: 1.8.3 - library version ssd1306 - LCD display type Windows 11 - OS [e.g. linux, windows] ESP32 - Platform [e.g. Atmega328p, esp32, etc.] Arduino IDE 2.2.1 - IDE if using some

Additional context Add any other context about the problem here.

anonymous721 commented 10 months ago

This isn't just with the demo. Even an empty default sketch plus just the initial #include "ssd1306.h" gives me the same error. Same information (package v1.8.3, Arduino IDE v2.2.1, and an ESP32 device) except Linux instead of Windows.

M1rk0 commented 10 months ago

Having the same error with ESP Wroom 32 Dev Board, Arduino IDE 2.2.1, Windows 11.

lexus2k commented 8 months ago

I can confirm that I observe the same issues on the latest releases:

c:\Users\alexe\OneDrive\Documents\Arduino\libraries\ssd1306\src\intf\vga\esp32\CompositeOutput.cpp: In member function 'void CompositeOutput::check_buffer()':
c:\Users\alexe\OneDrive\Documents\Arduino\libraries\ssd1306\src\intf\vga\esp32\CompositeOutput.cpp:280:9: error: 'i2s_write_bytes' was not declared in this scope
         i2s_write_bytes(I2S_PORT, (char*)line, sizeof(uint16_t) * (m_end - line), &bytes_written, portMAX_DELAY);
         ^~~~~~~~~~~~~~~
c:\Users\alexe\OneDrive\Documents\Arduino\libraries\ssd1306\src\intf\vga\esp32\CompositeOutput.cpp:280:9: note: suggested alternative: 'i2s_write_expand'
         i2s_write_bytes(I2S_PORT, (char*)line, sizeof(uint16_t) * (m_end - line), &bytes_written, portMAX_DELAY);
         ^~~~~~~~~~~~~~~
         i2s_write_expand

It will be fixed