Skip to content

Commit

Permalink
new device
Browse files Browse the repository at this point in the history
  • Loading branch information
brunostjohn committed Mar 27, 2023
1 parent 1a6a90b commit 64b67c9
Show file tree
Hide file tree
Showing 19 changed files with 536 additions and 118 deletions.
2 changes: 1 addition & 1 deletion app.config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"defaultThemePath":"C:\\Users\\bruno\\Documents\\GitHub\\capellix-lcd\\themes\\notzxt_2\\theme.js","fps":25,"renderAtStartup":false,"startMinimised":false,"startAtLogin":false,"showWarningAlert":true,"rotation":0}
{"defaultThemePath":"C:\\Users\\bruno\\Documents\\GitHub\\capellix-lcd\\themes\\clock\\theme.js","fps":25,"renderAtStartup":false,"startMinimised":false,"startAtLogin":false,"showWarningAlert":true,"rotation":0}
2 changes: 2 additions & 0 deletions assets/scripts/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ window.electronAPI.threeDivs((_event) => {
// </a>
// </div>
let htmlToAppend = `
<div class="fillspace"></div>
<div class="fillspace"></div>
<div class="fillspace"></div>
<div class="fillspace"></div>
<div class="fillspace"></div>
Expand Down
2 changes: 1 addition & 1 deletion assets/styles/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.actualSettings {
margin-left: 4rem;
margin-right: 4rem;
margin-top: 4.5rem;
margin-top: 5.5rem;
margin-bottom: 1rem;
}

Expand Down
5 changes: 5 additions & 0 deletions devices-src/tt-ultra/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target
capellix.node
**/node_modules
**/.DS_Store
npm-debug.log*
229 changes: 229 additions & 0 deletions devices-src/tt-ultra/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions devices-src/tt-ultra/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "tt-ultra"
version = "0.1.0"
description = "Native bindings for the Toughliquid Ultra LCD."
authors = ["Bruno St. John"]
license = "Apache-2.0"
edition = "2018"
exclude = ["tt-ultra.node"]

[lib]
crate-type = ["cdylib"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hidapi-rusb = "1.3.2"
base64 = "0.21.0"
once_cell = "1.17.1"

[dependencies.neon]
version = "0.10"
default-features = false
features = ["napi-6"]
9 changes: 9 additions & 0 deletions devices-src/tt-ultra/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# capellixv2

**capellixv2:** Native bindings for the Capellix LCD rev 2.

This is an LCD driver as part of the Zefir's Flashy Cooler project.

It is based on a reverse engineering effort led by me and TheDordo from the SignalRGB team.

![Cooler Image](https://github.com/brunostjohn/zefirs-flashy-cooler/raw/main/devices-src/capellix/resources/device.image.png)
26 changes: 26 additions & 0 deletions devices-src/tt-ultra/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "tt-ultra",
"version": "0.1.0",
"description": "Native bindings for the Thermaltake Ultra LCD.",
"main": "tt-ultra.node",
"scripts": {
"build": "cargo-cp-artifact -nc tt-ultra.node -- cargo build --message-format=json-render-diagnostics",
"build-debug": "npm run build --",
"build-release": "npm run build -- --release",
"install": "npm run build-release",
"test": "cargo test"
},
"author": "Bruno St. John",
"license": "Apache-2.0",
"devDependencies": {
"cargo-cp-artifact": "^0.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/brunostjohn/zefirs-flashy-cooler.git"
},
"bugs": {
"url": "https://github.com/brunostjohn/zefirs-flashy-cooler/issues"
},
"homepage": "https://github.com/brunostjohn/zefirs-flashy-cooler#readme"
}
Binary file added devices-src/tt-ultra/resources/device.image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions devices-src/tt-ultra/resources/device.manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
manifest: {
vendorId: 0x264a,
productId: 0x2328,
deviceName: "Toughliquid Ultra",
width: 480,
height: 480,
maxFps: 30,
supportsStaticHardwareImage: false,
supportHardwareGif: false,
supportBrightnessControl: false,
},
};
5 changes: 5 additions & 0 deletions devices-src/tt-ultra/src/constants.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub mod constants {
pub const VENDOR_ID: u16 = 0x264a;
pub const PRODUCT_ID: u16 = 0x2328;
pub const IMG_TX: u8 = 0x02;
}
Loading

0 comments on commit 64b67c9

Please sign in to comment.