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

Method setScrollArea

Arduino_ST7789_Fast.cpp:582–589  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

580
581// ----------------------------------------------------------
582void Arduino_ST7789::setScrollArea(uint16_t tfa, uint16_t bfa)
583{
584 uint16_t vsa = 320-tfa-bfa; // ST7789 320x240 VRAM
585 writeCmd(ST7789_VSCRDEF);
586 writeData16(tfa);
587 writeData16(vsa);
588 writeData16(bfa);
589}
590
591// ----------------------------------------------------------
592void Arduino_ST7789::setScroll(uint16_t vsp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected