get-resolution

wayland/arduino-tvout/get-resolution

Report resolution of display.
get-resolution
@/get-resolution
Report resolution of display.
DEV@/tvout-device
A tvout device.
get-resolution
X
Y
DEV
Ynumber
Vertical resolution.
Xnumber
Horizontal resolution.
To use the node in your project you should have the wayland/arduino-tvout 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) {
    // Get a pointer to the `TVout` class instance
    auto tv = getValue<input_DEV>(ctx);

    unsigned char x, y;
    x = tv->hres();
    y = tv->vres();
    emitValue<output_X>(ctx, x);
    emitValue<output_Y>(ctx, y);
}