With the previous algorithm, once every 65 seconds, there would be a significant jump in the brightness of the "breathing" LEDs as the 16-bit value recorded from `millis()` overflowed. Instead of dividing by 12, I changed it to a bit shift (4 bits; equivalent to division by 16), so when the integer overflow occurs, the next value is what it should be.pull/365/head
parent
6836de6899
commit
cef1926465
Loading…
Reference in new issue