spectrenoir06 / OctoWifi-LEDs-Controller

LEDs driver for ESP32 ( support ART-NET, RGB888, RGB565, Z888 )
http://antoine.doussaud.org/esp32_LED
21 stars 3 forks source link

drawPixelRGB565 error #1

Open Premedicated opened 3 years ago

Premedicated commented 3 years ago

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 commented 3 years ago

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

spectrenoir06 commented 2 years ago

fix