summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-29 18:10:31 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-29 18:10:31 +0200
commit232a405d39133a049bdf7f121de77156b91b58e0 (patch)
treecb7d08d4835d31fb70babc58b70f443587af4b97
parent09b9f7cad0d4013a228e2d7019cfd9067ef49bd7 (diff)
Add breathe mode
-rw-r--r--src/app/App.java6
-rw-r--r--src/drivers/Driver_1770_ff00.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/app/App.java b/src/app/App.java
index adec5cc..fd10967 100644
--- a/src/app/App.java
+++ b/src/app/App.java
@@ -49,16 +49,16 @@ public class App
App app =new App();
CmdLineParser parser = new CmdLineParser(app);
parser.parseArgument(args);
- app.parseArguments();
+ app.parseArguments();
new MainWindow();
- /* DriverTypeA device=new Driver_1770_ff00();
+ /*DriverTypeA device=new Driver_1770_ff00();
Driver a=(Driver) device;
a.initDriver();
device.setRegionColor(Region.LEFT, Color.RED, Intensity.HIGH);
device.setRegionColor(Region.MIDDLE, Color.ORANGE, Intensity.HIGH);
device.setRegionColor(Region.RIGHT, Color.PURPLE, Intensity.HIGH);
- device.setMode(Mode.WAVE);*/
+ device.setMode(Mode.BREATHE);*/
}
}
diff --git a/src/drivers/Driver_1770_ff00.java b/src/drivers/Driver_1770_ff00.java
index 59c4dcb..01e9f59 100644
--- a/src/drivers/Driver_1770_ff00.java
+++ b/src/drivers/Driver_1770_ff00.java
@@ -136,7 +136,7 @@ public class Driver_1770_ff00 implements Driver, DriverTypeA{
this.mode=mode;
// Apply wave mode
- if(this.mode==Mode.WAVE){
+ if(this.mode==Mode.WAVE || this.mode==Mode.BREATHE){
for(int i=0;i<Region.values().length;i++){
int entry=i*3; // 3 entry for each region (left:1,2,3 -- middle:4,5,6 -- right:7,8,9)
try {