Implement fading alarm
This commit is contained in:
parent
3e33e489aa
commit
6b73e32cda
3 changed files with 26 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue