vex_sdk::display

Function vexDisplayScroll

Source
pub unsafe fn vexDisplayScroll(nStartLine: i32, nLines: i32)
Expand description

Moves a region of the screen defined by all the pixels whose y-axis coordinate are within the range [nStartLine, 272) nLines pixels upwards, without affecting portions of the screen outside the specified scroll region.

Since nLines is a signed integer, a negative value will move the pixels in the region downwards instead. Pixels that move outside the region being scrolled are discarded, and any portions of the region that no longer have a value after the operation are set to the background color.

ยงSafety

Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.