summaryrefslogtreecommitdiff
path: root/src/drivers/BasicDriver.java
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-27 18:37:12 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-27 18:37:12 +0200
commit6500028632b515c99a1d057478896fe66955fe29 (patch)
treebd7e4134b8ed17cabe3c073563680737fec6ca89 /src/drivers/BasicDriver.java
parent91430fcc06d1f7aff7ff7ca3babd3ec2c745ab73 (diff)
Add driver modularity
Diffstat (limited to 'src/drivers/BasicDriver.java')
-rw-r--r--src/drivers/BasicDriver.java110
1 files changed, 110 insertions, 0 deletions
diff --git a/src/drivers/BasicDriver.java b/src/drivers/BasicDriver.java
new file mode 100644
index 0000000..9ec7c13
--- /dev/null
+++ b/src/drivers/BasicDriver.java
@@ -0,0 +1,110 @@
+package org.manzerbredes.open_klm.drivers;
+
+
+public interface BasicDriver{
+
+
+ /**
+ * Defined Region Helper
+ *
+ * @author Manzerbredes
+ *
+ */
+ public enum Region{
+ LEFT(1), MIDDLE(2), RIGHT(3);
+
+ private int current;
+
+ Region(int current){
+ this.current=current;
+ }
+
+ public int intValue(){
+ return this.current;
+ }
+ }
+
+ /**
+ * Defined Color Helper
+ *
+ * @author Manzerbredes
+ *
+ */
+ public enum Color{
+ OFF(0),RED(1),ORANGE(2),YELLOW(3),GREEN(4),SKY(5), BLUE(6),PURPLE(7),WHITE(8);
+
+ private int current;
+
+ Color(int current){
+ this.current=current;
+ }
+
+ public int intValue(){
+ return this.current;
+ }
+ }
+
+ /**
+ * Defined Level Helper
+ *
+ * @author Manzerbredes
+ *
+ */
+ public enum Intensity{
+ HIGH(0), MEDIUM(1), LOW(2), LIGHT(3);
+
+ private int current;
+
+ Intensity(int current){
+ this.current=current;
+ }
+
+ public int intValue(){
+ return this.current;
+ }
+ }
+
+ /**
+ * Defined Mode Helper
+ *
+ * @author Manzerbredes
+ *
+ */
+ public enum Mode{
+ NORMAL(1), GAMING(2), BREATHE(3), DEMO(4), WAVE(5);
+
+ private int current;
+
+ Mode(int current){
+ this.current=current;
+ }
+
+ public int intValue(){
+ return this.current;
+ }
+ }
+
+
+
+ /**
+ * Set color of the region
+ * @param region
+ * @param color
+ * @param intensity
+ */
+ public void setRegionColor(Region region, Color color, Intensity intensity);
+
+ /**
+ * Set global keyboard color
+ * @param color
+ * @param intensity
+ */
+ public void setColor(Color color, Intensity intensity);
+
+ /**
+ * Set keyboard mode
+ * @param mode
+ */
+ public void setMode(Mode mode);
+
+} \ No newline at end of file