LambLisp 01 Red Fox Alpha
From AI to Actuator
Loading...
Searching...
No Matches
LL_Panel Struct Reference

Public Attributes

const char * name
int w
int h
LL_PanelModel model
bool(* init )(Lamb &lamb)
void(* fill )(Lamb &lamb, int x, int y, int w, int h, uint16_t color)
void(* blit )(Lamb &lamb, int x, int y, int w, int h, const uint16_t *src)
uint16_t *(* fb )(void)
void(* set_brightness )(Lamb &lamb, int percent)
void(* on_off )(Lamb &lamb, bool on)

Detailed Description

A board's panel: geometry, model, and the five operations. See the note above on NULL.

Member Data Documentation

◆ name

const char* LL_Panel::name

"st7789-240x240-spi3", "co5300-410x502-qspi", "rgb565-480x480-par16"

◆ h

int LL_Panel::h

panel geometry in pixels

◆ model

LL_PanelModel LL_Panel::model

PUSH or SCAN – branch on this, not on the name.

◆ init

bool(* LL_Panel::init) (Lamb &lamb)

bring up bus + controller; idempotent

◆ fill

void(* LL_Panel::fill) (Lamb &lamb, int x, int y, int w, int h, uint16_t color)

filled rect, RGB565

◆ blit

void(* LL_Panel::blit) (Lamb &lamb, int x, int y, int w, int h, const uint16_t *src)

PUSH only; NULL on SCAN.

◆ fb

uint16_t *(* LL_Panel::fb) (void)

SCAN only; NULL on PUSH.

◆ set_brightness

void(* LL_Panel::set_brightness) (Lamb &lamb, int percent)

0..100, or NULL if the panel has none

◆ on_off

void(* LL_Panel::on_off) (Lamb &lamb, bool on)

display on/off, or NULL