azizo-core
Unofficial Rust API for ASUS Splendid display control on Windows.
Disclaimer
This is an unofficial library. It is not affiliated with or endorsed by ASUS. Use at your own risk.
Requirements
- Windows 10/11
- ASUS laptop with Splendid display support
- ASUS PC Assistant installed
Installation
Usage
use ;
Available Modes
| Mode | Description | Parameters |
|---|---|---|
NormalMode |
Default color profile | None |
VividMode |
Enhanced colors | None |
ManualMode |
User-adjustable color temperature | value: 0-100 |
EyeCareMode |
Blue light filter | level: 0-4 |
EReadingMode |
Grayscale for reading | grayscale: 0-4, temp |
Testing
Use MockController to test without hardware:
use ;
let mock = new;
mock.set_mode.unwrap;
assert_eq!;
Examples
Run the toggle example:
API
AsusController
new()- Create a new controller (only one instance allowed)get_state()- Get a snapshot of current stateset_mode(&mode)- Set a display modetoggle_e_reading()- Toggle e-reading mode on/offset_dimming(level)- Set dimming (40-100 splendid units)set_dimming_percent(percent)- Set dimming (0-100%)sync_all_sliders()- Sync all values from hardwarerefresh_sliders()- Refresh slider values
ControllerState
Snapshot struct containing:
mode_id- Current mode (1=Normal, 2=Vivid, 6=Manual, 7=EyeCare)is_monochrome- Whether e-reading mode is activedimming- Dimming level (40-100)manual_slider- Manual mode value (0-100)eyecare_level- Eye care level (0-4)ereading_grayscale- E-reading grayscale (0-4)ereading_temp- E-reading temperature
Limitations
- Requires ASUS PC Assistant to be installed
- Windows only
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.