aboutsummaryrefslogtreecommitdiff
path: root/src/kern/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kern/main.c')
-rw-r--r--src/kern/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kern/main.c b/src/kern/main.c
index 48967c7..fab2eb9 100644
--- a/src/kern/main.c
+++ b/src/kern/main.c
@@ -125,7 +125,13 @@ int main()
brightness = 3 * byte_sin(time / 5000) / 4 + 63;
- uint32_t white = amp(byte_sin(time / 6310 + i / 4));
+ /* Add a little white flair that comes around every once in a while. */
+ uint32_t white = time / 137 + i * 4;
+ if ((white / 256) % 8 == 0) {
+ white = amp(byte_sin(white));
+ } else {
+ white = 0;
+ }
ws2812b_write_rgb_sync(
drv,