MCPcopy Create free account
hub / github.com/HASwitchPlate/openHASP / drawPixel

Method drawPixel

lib/GxTFT/src/GxTFT.cpp:991–1000  ·  view source on GitHub ↗

** Function name: drawPixel ** Description: push a single pixel at an arbitrary position ***************************************************************************************/

Source from the content-addressed store, hash-verified

989** Description: push a single pixel at an arbitrary position
990***************************************************************************************/
991void 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

Callers 1

fsmc_ili9341_initFunction · 0.45

Calls 4

startTransactionMethod · 0.45
setWindowAddressMethod · 0.45
writeData16Method · 0.45
endTransactionMethod · 0.45

Tested by

no test coverage detected