I need a byte to store values from 0 to 240 to express time of day (yes, that has two midnights, with cause!), and use values greater than that for "hourly" and so fourth.
If I was starting names at zero, I could use enum, but I'm not (cannot, AFAIK). So for the moment I define
const byte SPR_HOURLY=241; const byte SPR_TWO_HOURS=242; const byte SPR_THREE_HOURS=243; const byte SPR_FOUR_HOURS=244; const byte SPR_SIX_HOURS=245; const byte SPR_EIGHT_HOURS=246; const byte SPR_TWELVE_HOURS=247; const byte SPR_HALF_HOUR=246; const byte SPR_FIFTH_HOUR=247;
and, as to be expected, I've realized that that's not quite how I want it.
As I'll probably change my mind another couple of times in the next couple of days, is there a "sensible" way to start a serious of assignments at, say, 241?
[FWIW, this divides the day into 240 six minute segments for a sprinkler system. But for the early weeks when seeding, I need to keep the soil moist, so hourly or two hourly, depending on weather And some things just want to be watered every six hours, or whatever.]