Substituting the sunrise result into a variable

Read the TimeLoad documentation.

It looks like after you call tardus.SunRise you will have

hours are in the array you passed and can be used like

byte myHour = today[tl_hour];

and similarly minutes can be used like

byte myMinute = today[tl_minute];

if you really want to have it that way, but there’s actually no need to do - the values are in the array you passed to the TimeLord, so just use them.

Do you know how arrays and using them as arguments to functions work?

Nice library, in any event. Yhanks for drawing attention to it.

a7

1 Like