Crate alienrgb

Crate alienrgb 

Source
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
AnimationCountResponse
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.
PlatformResponse
Represent platform id and zone count
Rgb
Color represented as its three components
VersionResponse
The version of the controller software

Enums§

AnimationId
Animations id, except for the power ones.
Used to determine when to play an animation.
AnimationSub
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.
PowerAnimationId
Power animations id.
Used to determine in what power situation play the animation.
QuerySub
Query subcommands
Response
Represetation of the different possible responses (with data inside)
ResponseType
Represetation of the different possible responses (without data)
StatusResponse
Status of the controller

Traits§

Command
Every usable command should implement this trait

Type Aliases§

Zone
Type representing a zone on the controller.