MCPcopy Create free account
hub / github.com/cbm80amiga/Arduino_ST7789_Fast / drawFastVLine

Method drawFastVLine

Arduino_ST7789_Fast.cpp:447–457  ·  view source on GitHub ↗

----------------------------------------------------------

Source from the content-addressed store, hash-verified

445
446// ----------------------------------------------------------
447void Arduino_ST7789::drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)
448{
449 if(x>=_width || y>=_height || h<=0) return;
450 if(y+h-1>=_height) h=_height-y;
451 setAddrWindow(x, y, x, y+h-1);
452
453 writeMulti(color,h);
454
455 CS_IDLE;
456 SPI_END;
457}
458
459// ----------------------------------------------------------
460void Arduino_ST7789::drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected