Added a LED controller that consumes LED frames from the modes
[kaka/cakelight.git] / src / kaka / cakelight / Mode.java
1 package kaka.cakelight;
2
3 import java.util.function.Consumer;
4
5 public abstract class Mode {
6     protected Consumer<LedFrame> frameListener;
7
8     public abstract void enter(Configuration config);
9     public abstract void exit();
10
11     public void setFrameListener(Consumer<LedFrame> listener) {
12         frameListener = listener;
13     }
14 }