** Function name: drawPixel ** Description: push a single pixel at an arbitrary position ***************************************************************************************/
| 989 | ** Description: push a single pixel at an arbitrary position |
| 990 | ***************************************************************************************/ |
| 991 | void GxTFT::drawPixel(uint16_t x, uint16_t y, uint16_t color) |
| 992 | { |
| 993 | // Faster range checking, possible because x and y are unsigned |
| 994 | if ((x >= _width) || (y >= _height)) return; |
| 995 | return Controller.drawPixel(x, y, color); |
| 996 | IO.startTransaction(); |
| 997 | Controller.setWindowAddress(x, y, x, y); |
| 998 | IO.writeData16(color); |
| 999 | IO.endTransaction(); |
| 1000 | } |
| 1001 | |
| 1002 | /*************************************************************************************** |
| 1003 | ** Function name: pushColor |
no test coverage detected