FrameworkComputer / framework-system

Rust libraries and tools to interact with the Framework Computer systems
BSD 3-Clause "New" or "Revised" License
106 stars 6 forks source link

Add commands to get/ set charge limit and FP brightness #9

Closed JohnAZoidberg closed 8 months ago

JohnAZoidberg commented 8 months ago

The minimum limit cannot be changed.

Tested on platforms:

Tested with drivers:

Examples:

> framework_tool --driver portio --charge-limit
Minimum 0%, Maximum 100%

> framework_tool --charge-limit 90
Minimum 0%, Maximum 90%

> framework_tool --driver portio --fp-brightness
Fingerprint LED Brightness: 55%

> framework_tool --fp-brightness low
Fingerprint LED Brightness: 15%

Fixes #5