write-contrast

bradzilla84/visi-genie-extra-library/write-contrast

Most Picaso display modules can only have a value of 1 or 0 (on or off) for contrast. The uLCD-43P/PT/PCT modules and Diablo16 display modules, however, support contrast values from 0 to 15, which makes power saving possible
write-contrast
@/write-contrast
Most Picaso display modules can only have a value of 1 or 0 (on or off) for contrast. The uLCD-43P/PT/PCT modules and Diablo16 display modules, however, support contrast values from 0 to 15, which makes power saving possible
DEVgabbapeople/4d-ulcd/4d-ulcd
a 4D uLCD device
VALnumber
An integer value in a specified range
PUSHpulse
Pushes a new value
write-contrast
DEV
VAL
PUSH
To use the node in your project you should have the bradzilla84/visi-genie-extra-library 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) {
    auto _genie = getValue<input_DEV>(ctx);
    int val = getValue<input_VAL>(ctx);

    if (isInputDirty<input_PUSH>(ctx)){
        _genie.genie->WriteContrast(val);
    }
}