tftfillrect

ivanmason/tft-lcd-touch/tftfillrect

No description
tftfillrect
@/tftfillrect
DEV@/tftlcd-device
STXnumber
STYnumber
WXnumber
HYnumber
COLnumber
UPDpulse
tftfillrect
DEV
STX
STY
WX
HY
COL
UPD
DONE
DONEpulse
To use the node in your project you should have the ivanmason/tft-lcd-touch library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    if (!isInputDirty<input_UPD>(ctx))
        return;
   
    auto tft = getValue<input_DEV>(ctx);
    int16_t x = getValue<input_STX>(ctx);
    int16_t y = getValue<input_STY>(ctx);
    int16_t w = getValue<input_WX>(ctx);
    int16_t h = getValue<input_HY>(ctx);
    uint16_t color = getValue<input_COL>(ctx);
    tft->fillRect(x, y, w, h, color);
    emitValue<output_DONE>(ctx, 1);
}