utility-grove-init-motortreiber

hio/nwt-gus-hi/utility-grove-init-motortreiber

No description
utility-grove-init-motortreiber
@/utility-grove-init-motortreiber
DEV@/utility-grove-motortreiber-device
INITpulse
utility-grove-init-motortreiber
DEV
INIT
OK
OKpulse
To use the node in your project you should have the hio/nwt-gus-hi 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

#pragma XOD evaluate_on_pin disable
#pragma XOD evaluate_on_pin enable input_INIT

node {

    void evaluate(Context ctx) {
        if (!isInputDirty<input_INIT>(ctx))
            return;
        
        auto driver = getValue<input_DEV>(ctx);
        
        driver->begin(0x0f);
        
        emitValue<output_OK>(ctx, 1);
    }
}