lcd16x2cursor

ivanmason/lcd16x2x5button/lcd16x2cursor

No description
lcd16x2cursor
@/lcd16x2cursor
DEV@/lcd16x2
Lcd Objected
CURboolean
True cursor on and False for cursor off
BLINKboolean
True For Blinking False For Not Blinking
Cxnumber
Cursor Position X 0 to 15
Cynumber
Cursor Position Y 0 or 1
UPDpulse
Trigger to Output Cursor
lcd16x2cursor
DEV
CUR
BLINK
Cx
Cy
UPD
DEV'
DONE
DONEpulse
Trigger When Done
DEV'@/lcd16x2
Lcd Objected
To use the node in your project you should have the ivanmason/lcd16x2x5button 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) {
    emitValue<output_DEVU0027>(ctx, getValue<input_DEV>(ctx));
    
    if (isInputDirty<input_UPD>(ctx)){
        auto lcd = getValue<input_DEV>(ctx);
        lcd->setCursor(getValue<input_Cx>(ctx), getValue<input_Cy>(ctx));
        if(getValue<input_CUR>(ctx)){
            lcd->cursor();
        }
        else {
            lcd->noCursor();
        }
        
        if(getValue<input_BLINK>(ctx)){
            lcd->blink();
        }
        else {lcd->noBlink();}

        emitValue<output_DONE>(ctx, 1);
    }
}