Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling ssd1306_demo #159

Open
sidtupper opened this issue Nov 29, 2023 · 3 comments
Open

Error compiling ssd1306_demo #159

sidtupper opened this issue Nov 29, 2023 · 3 comments
Assignees
Labels

Comments

@sidtupper
Copy link

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:

  • In Arduino IDA / Manage Libraries install ssd1306
  • load Examples/ssd1306/demos/ssd1306_demo
  • Verify/Compile

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
Copy link

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
Copy link

M1rk0 commented Jan 15, 2024

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

@lexus2k
Copy link
Owner

lexus2k commented Mar 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants