LCD: putrun or putarea?

2026-02-06 published

There is LCDDEVIO_PUTAREA and LCDDEVIO_PUTRUN IOCTL that could be called on an LCD device, like /dev/lcd0, bubbling down to _putarea and _putrun implemented in the low-level LCD driver, like ILI9341.

_putrun could be used as _putarea’s fallback when _putarea is not implemented.

Input parameters of _putarea and their constraints:

Input parameters of _putrun and their constraints:

_putrun fallback implemented with _putarea:

col = col_start;
npixels = col_end - col_start + 1;

for (row = row_start; row <= row_end; row++) {
    _putrun(lcd_dev, row, col, buffer, npixels);
}
go back | CC0 1.0