summaryrefslogtreecommitdiff
path: root/src/device/Driver.java
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-27 13:34:34 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-27 13:34:34 +0200
commit37c7d1e7a6d9e330345de24dfd1957c76716bd3a (patch)
treeab99cc233967fa412eee041957325a732e7254a4 /src/device/Driver.java
parent4263d0e02cee82099463ac1e1c9caea0e294a644 (diff)
Add method
Diffstat (limited to 'src/device/Driver.java')
-rw-r--r--src/device/Driver.java18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/device/Driver.java b/src/device/Driver.java
index fe57fd7..d629aa7 100644
--- a/src/device/Driver.java
+++ b/src/device/Driver.java
@@ -95,12 +95,6 @@ public class Driver{
}
}
-
-
-
-
-
-
/**
* Device entry
*/
@@ -154,6 +148,13 @@ public class Driver{
}
+ /**
+ * Set Color of region
+ *
+ * @param region Region to apply
+ * @param color Color to apply
+ * @param intensity Intensity wanted
+ */
public void setColor(Region region, Color color, Intensity intensity){
try {
this.device.sendFeatureReport(this.getReport(1,2,66,region.intValue(),color.intValue(),intensity.intValue(),0,236));
@@ -163,6 +164,11 @@ public class Driver{
}
}
+ /**
+ * Commit change
+ *
+ * @param mode Mode wanted
+ */
public void commit(Mode mode){
try {
this.device.sendFeatureReport(this.getReport(1,2,65,mode.intValue(),0,0,0,236));