ds1302-read

cs/test-ds1302/ds1302-read

No description
ds1302-read
@/ds1302-read
1302@/ds1302-dev
GETpulse
ds1302-read
Year
Month
Day
WeekDay
Hour
Minute
Second
1302
GET
Secondnumber
Minutenumber
Hournumber
WeekDaynumber
Daynumber
Monthnumber
Yearnumber
To use the node in your project you should have the cs/test-ds1302 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) {

    if (!isInputDirty<input_GET>(ctx)) {
        return;
    }

    auto rtc = getValue<input_1302>(ctx);

    rtc->updateTime();
    emitValue<output_Year>(ctx,rtc->year);
    emitValue<output_Month>(ctx,rtc->month);
    emitValue<output_Day>(ctx,rtc->dayofmonth);
    emitValue<output_WeekDay>(ctx,rtc->dayofweek);
    emitValue<output_Hour>(ctx,rtc->hours);
    emitValue<output_Minute>(ctx,rtc->minutes);
    emitValue<output_Second>(ctx,rtc->seconds);

}