Implement fading alarm

This commit is contained in:
Sven van Heugten 2026-01-17 18:01:14 +01:00
parent 3e33e489aa
commit 6b73e32cda
3 changed files with 26 additions and 7 deletions

View file

@ -79,7 +79,12 @@ type internal State =
| On
| Off
type internal Brightness = Brightness of int
type internal Brightness =
| Brightness of int
member this.Scale(b: float) =
match this with
| Brightness brightness -> Brightness <| int (float brightness * b)
type internal Color =
| ColorByCoordinates of float * float