Commit | Line | Data |
---|---|---|
67b0a758 TW |
1 | package kaka.cakelight.mode; |
2 | ||
3 | import kaka.cakelight.Color; | |
4 | import kaka.cakelight.Configuration; | |
5 | import kaka.cakelight.LedFrame; | |
88438046 TW |
6 | |
7 | public class SingleColorMode extends Mode { | |
8 | private Color color; | |
9 | ||
10 | public SingleColorMode(Color c) { | |
11 | color = c; | |
12 | } | |
13 | ||
14 | @Override | |
15 | public void enter(Configuration config) { | |
16 | LedFrame frame = LedFrame.from(config); | |
17 | frame.fillColor(color); | |
18 | updateWithFrame(frame); | |
19 | } | |
20 | ||
21 | @Override | |
22 | public void exit() { | |
23 | } | |
24 | } |