Basic Time Functions

Here is one way to get rid of that wonky integer math

  byte low = 100;
  byte high = 255;
  byte t = millis();

  byte bri = low + (((high-low) * sin8_C(t) )/ 255);
  setColor(dim(RED, bri));
1 Like