I surrender. I swear I’ve been working on this project since April and I need to call in reinforcements. I’m struggling with seemingly the simplest problem. I need my alarms to increment my palettes up one each time they run. I"m using what I thought was the normal means of doing that:
gCurrentPaletteNumber = addmod8( gCurrentPaletteNumber, 1, gGradientPaletteCount);
gTargetPalette = gGradientPalettes[ gCurrentPaletteNumber ];
It works the first sunrise, the first sunset, the next day’s sunrise and then fails on the following sunset showing all white. I set the serial to output the palette number and it starts on palette 2, then 3, then 4, then 5. However, on 5, it’s all white.
Would one of you mind taking pitty on me and lending a helping hand? My daughter’s aquarium has been without a light now since April. : )