---------------------------------------------------------- draws image from RAM
| 492 | // ---------------------------------------------------------- |
| 493 | // draws image from RAM |
| 494 | void Arduino_ST7789::drawImage(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t *img16) |
| 495 | { |
| 496 | // all protections should be on the application side |
| 497 | if(w<=0 || h<=0) return; // left for compatibility |
| 498 | //if(x>=_width || y>=_height || w<=0 || h<=0) return; |
| 499 | //if(x+w-1>=_width) w=_width -x; |
| 500 | //if(y+h-1>=_height) h=_height-y; |
| 501 | setAddrWindow(x, y, x+w-1, y+h-1); |
| 502 | |
| 503 | copyMulti((uint8_t *)img16, w*h); |
| 504 | |
| 505 | CS_IDLE; |
| 506 | SPI_END; |
| 507 | } |
| 508 | |
| 509 | // ---------------------------------------------------------- |
| 510 | // draws image from flash (PROGMEM) |
nothing calls this directly
no outgoing calls
no test coverage detected