Skip to content

Commit

Permalink
Couple more default layouts. Still getting pulse related crash on exi…
Browse files Browse the repository at this point in the history
…t (when pulse hasn't been started yet).
  • Loading branch information
brett-smith committed May 2, 2021
1 parent 647eb0d commit d9ba920
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 1.0.0-SNAPSHOT-${buildNumber}

* Added layout for Razer Base Station Chroma V2 .

# 1.0.0-SNAPSHOT-173

* Fails to start if `jscal` or `jstest-gtk` are not installed.

# 1.0.0-SNAPSHOT-172
Expand Down
4 changes: 2 additions & 2 deletions snake-dist/buildNumber.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#maven.buildNumber.plugin properties file
#Thu Apr 29 01:14:33 BST 2021
buildNumber=174
#Sun May 02 22:14:34 BST 2021
buildNumber=175
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"matrixHeight": 1,
"matrixWidth": 8,
"deviceType": "ACCESSORY",
"views": [
{
"desaturateImage": false,
"imageOpacity": 1.0,
"imageScale": 1.0,
"position": "TOP",
"elements": [
{
"type": "AREA",
"x": 0.487127,
"y": 0.7528777,
"label": "Base",
"region": "CHROMA"
},
{
"type": "LED",
"x": 0.6308484,
"y": 0.7460432,
"matrixX": 0,
"matrixY": 0
},
{
"type": "LED",
"x": 0.5374295,
"y": 0.6884892,
"matrixX": 1,
"matrixY": 0
},
{
"type": "LED",
"x": 0.5823424,
"y": 0.84136695,
"matrixX": 2,
"matrixY": 0
},
{
"type": "LED",
"x": 0.4691618,
"y": 0.86474824,
"matrixX": 3,
"matrixY": 0
},
{
"type": "LED",
"x": 0.35777774,
"y": 0.83417267,
"matrixX": 4,
"matrixY": 0
},
{
"type": "LED",
"x": 0.34699866,
"y": 0.7352518,
"matrixX": 5,
"matrixY": 0
},
{
"type": "LED",
"x": 0.43323147,
"y": 0.69028777,
"matrixX": 6,
"matrixY": 0
}
]
},
{
"desaturateImage": false,
"imageOpacity": 1.0,
"imageScale": 1.0,
"position": "MATRIX",
"elements": [
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 0,
"matrixY": 0
},
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 1,
"matrixY": 0
},
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 2,
"matrixY": 0
},
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 3,
"matrixY": 0
},
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 4,
"matrixY": 0
},
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 5,
"matrixY": 0
},
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 6,
"matrixY": 0
},
{
"type": "MATRIX_CELL",
"x": 0.0,
"y": 0.0,
"region": "CHROMA",
"matrixX": 7,
"matrixY": 0
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"matrixHeight": 0,
"matrixWidth": 0,
"deviceType": "HEADSET",
"views": [
{
"desaturateImage": false,
"imageOpacity": 1.0,
"imageScale": 0.59241706,
"position": "TOP",
"elements": [
{
"type": "AREA",
"x": 0.7875,
"y": 0.7875,
"label": "Lighting",
"region": "CHROMA"
}
]
}
]
}
2 changes: 1 addition & 1 deletion snake-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<dependency>
<groupId>uk.co.bithatch</groupId>
<artifactId>jimpulse</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
<dependency>
<groupId>uk.co.bithatch</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public void start() {
try {
startDeviceEffects(effect);
} catch (Exception e) {
LOG.log(Level.ERROR, "Failed to start custom effects.", e);
LOG.log(Level.ERROR, String.format("Failed to start custom effect %s.", effect.getId()), e);
}
}
context.getBackend().addListener(this);
Expand Down

0 comments on commit d9ba920

Please sign in to comment.