origin-rgblcd

cesars/rgblcd/origin-rgblcd

No description
origin-rgblcd
@/origin-rgblcd
lcd@/rgblcd
leftpulse
rightpulse
homepulse
origin-rgblcd
lcd
left
right
home
done
donepulse
To use the node in your project you should have the cesars/rgblcd 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 lcd = getValue<input_lcd>(ctx);

    if (isInputDirty<input_left>(ctx)){
        lcd->rightToLeft();
        emitValue<output_done>(ctx,1);
    }
    if (isInputDirty<input_right>(ctx)){
        lcd->leftToRight();
        emitValue<output_done>(ctx,1);
    }
    if (isInputDirty<input_home>(ctx)){
        lcd->home();
        emitValue<output_done>(ctx,1);
    }
}