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

drawPixelRGB565 error #1

Open
Premedicated opened this issue Jun 18, 2021 · 2 comments
Open

drawPixelRGB565 error #1

Premedicated opened this issue Jun 18, 2021 · 2 comments

Comments

@Premedicated
Copy link

Trying to compile this and I keep getting hit with errors.

`src/main.cpp:354:118: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=]
Serial.printf("ret: %d == %s, compress: %d, uncompress: %d, r: %d\n", ret, mz_error(ret), compress_size, un_size, r);
^

src/main.cpp:359:18: error: 'class MatrixPanel_I2S_DMA' has no member named 'drawPixelRGB565'
dma_display.drawPixelRGB565 (i%MATRIX_WIDTH, i/MATRIX_WIDTH, ((uint16_t*)buff_test)[i]);
^

src/main.cpp: In function 'void udp_receive(AsyncUDP_bigPacket)':

src/main.cpp:591:19: error: 'class MatrixPanel_I2S_DMA' has no member named 'drawPixelRGB565'
dma_display.drawPixelRGB565((i + leds_off) % MATRIX_WIDTH, (i + leds_off) / MATRIX_WIDTH, data16[i]);
^

src/main.cpp:681:21: error: 'class MatrixPanel_I2S_DMA' has no member named 'drawPixelRGB565'
dma_display.drawPixelRGB565(i%128, i/128, ((uint16_t*)leds)[i]);`

Any thoughts or ideas?

@spectrenoir06
Copy link
Owner

It's the lib for the hub75 who doesn't have draw_rgb565.
Did you use the correct lib ?

@spectrenoir06
Copy link
Owner

fix

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

No branches or pull requests

2 participants