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

Method drawFastHLine

Arduino_ST7789_Fast.cpp:460–470  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

458
459// ----------------------------------------------------------
460void Arduino_ST7789::drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)
461{
462 if(x>=_width || y>=_height || w<=0) return;
463 if(x+w-1>=_width) w=_width-x;
464 setAddrWindow(x, y, x+w-1, y);
465
466 writeMulti(color,w);
467
468 CS_IDLE;
469 SPI_END;
470}
471
472// ----------------------------------------------------------
473void Arduino_ST7789::fillScreen(uint16_t color)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected