Expand description
§Alienrgb
A library for Alienware RGB Controller device communication.
This crate was created using these informations from OpenRGB Developer Wiki and the code from there.
§Example
let elc = Elc::new();
let zones: Vec<Zones> = (4..16).collect();
let dim_command = Commands::Dim(50, zones.clone());
let _ = elc.execute(dim_command);Structs§
- Action
- Represent a playable action
- Animation
Count Response - Represent the count of possible animation and the last played animation id
- Elc
- Represent the rgb controller
If the device has a kernel driver it will be detached.
It will be reattached when the drop occurs. - Platform
Response - Represent platform id and zone count
- Rgb
- Color represented as its three components
- Version
Response - The version of the controller software
Enums§
- Animation
Id - Animations id, except for the power ones.
Used to determine when to play an animation. - Animation
Sub - Animation subcommands
- Commands
- All the (currently) available and implemented commands
- Effects
- Available light effects.
As stated in the documentation, it appears that all the effect available in the Alienware Center are a combination of these. - Power
Animation Id - Power animations id.
Used to determine in what power situation play the animation. - Query
Sub - Query subcommands
- Response
- Represetation of the different possible responses (with data inside)
- Response
Type - Represetation of the different possible responses (without data)
- Status
Response - Status of the controller
Traits§
- Command
- Every usable command should implement this trait
Type Aliases§
- Zone
- Type representing a zone on the controller.