diff --git a/ESP32-VirtualMatrixPanel-I2S-DMA.h b/ESP32-VirtualMatrixPanel-I2S-DMA.h index 7830c6c..5dee0b4 100644 --- a/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -105,7 +105,7 @@ class VirtualMatrixPanel inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t x, int16_t y) { - coords.x = coords.y = 0; + coords.x = coords.y = -1; // By defalt use an invalid co-ordinates that will be rejected by updateMatrixDMABuffer if (x < 0 || x > width() || y < 0 || y > height() ) { //Serial.printf("VirtualMatrixPanel::getCoords(): Invalid virtual display coordinate. x,y: %d, %d\r\n", x, y); @@ -212,4 +212,4 @@ inline void VirtualMatrixPanel::drawIcon (int *ico, int16_t x, int16_t y, int16_ } } -#endif \ No newline at end of file +#endif