guys, new of posters starting topics here.
i little stuck, , reason brains seem have given on me issue.
i have variable (hm) hours+min pulled rtc , stored variable.
what able evaluate variable (hm) , if between 1 , 800, have program stop , wait variable increase 801. between 801 , 1730 have program loop a. lastly if between 1730 , 2400 have program loop b.
i can't figure out how program deal 3 possible choices based on evaluation of variable. i did of hardware working, , have loop , loop b working independent sketches, can't seem bring without breaking everything.
whats best bet? assume if , else statement let me account 2 of ranges, right? goto evil said trying stick loops. can point me direction example learn from?
thanks!
i little stuck, , reason brains seem have given on me issue.
i have variable (hm) hours+min pulled rtc , stored variable.
what able evaluate variable (hm) , if between 1 , 800, have program stop , wait variable increase 801. between 801 , 1730 have program loop a. lastly if between 1730 , 2400 have program loop b.
i can't figure out how program deal 3 possible choices based on evaluation of variable. i did of hardware working, , have loop , loop b working independent sketches, can't seem bring without breaking everything.
whats best bet? assume if , else statement let me account 2 of ranges, right? goto evil said trying stick loops. can point me direction example learn from?
thanks!
sounds need 3 if / else - if statements.
show you've tried.
show you've tried.
Arduino Forum > Using Arduino > Programming Questions > Evaluating a variable with three outcomes
arduino
Comments
Post a Comment