combined AND OR
hi,
i have problem combine , or.
i need action first day of month @ midnight (or within 5 seconds past midnight)
this code check i'ts not working. what's wrong?
**********************************************************************
if (now.day()==1 && now.hour() == 0 && now.minute() == 0 && (now.second()==0 || now.second()<=5))
{
actions comes here;
....
....
}
****************************************************************
who can me?
thanks
herman
i have problem combine , or.
i need action first day of month @ midnight (or within 5 seconds past midnight)
this code check i'ts not working. what's wrong?
**********************************************************************
if (now.day()==1 && now.hour() == 0 && now.minute() == 0 && (now.second()==0 || now.second()<=5))
{
actions comes here;
....
....
}
****************************************************************
who can me?
thanks
herman
Arduino Forum > Using Arduino > Programming Questions > combined AND OR
arduino
Comments
Post a Comment