Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for changing Loupedeck CT backlight levels #2367

Closed
Corion opened this issue Jul 4, 2020 · 7 comments · Fixed by #2379
Closed

Add support for changing Loupedeck CT backlight levels #2367

Corion opened this issue Jul 4, 2020 · 7 comments · Fixed by #2379
Assignees
Labels
feature request New feature or request
Milestone

Comments

@Corion
Copy link

Corion commented Jul 4, 2020

First of all, thank you for this documentation of the Loupedeck CT commands!

In experimenting, I found that the command code 0x0409 sets the backlight level on my Loupedeck CT. The storage in register 2 seems to be only for common storage of the light level.

In my (Perl) code, I use the following sequence to update the backlight level:

$value = read_register(2);
# update byte 2 of $value
set_register(2, $value);
send_command(0x0409,$new_level);
@randomeizer
Copy link
Contributor

So you have to update the register and then send the command?

@Corion
Copy link
Author

Corion commented Jul 5, 2020

No, the two are completely independent from what I see. The register only saves the value, but has no influence on actually changing the brightness.

The command is what changes the brightness, completely independent of the register.

I think the register is only used as common storage between applications so that all applications can persist the brightness in the same location.

@randomeizer
Copy link
Contributor

So the read/set register commands are not necessary at all?

Given that it's just a single bit, I'm assuming that it's just switching something on or off. Does it affect the lights at all in either setting?

@latenitefilms latenitefilms self-assigned this Jul 5, 2020
@latenitefilms latenitefilms added the feature request New feature or request label Jul 5, 2020
@latenitefilms latenitefilms added this to the 1.0.7 milestone Jul 5, 2020
@latenitefilms latenitefilms changed the title Setting Loupedeck CT backlight levels uses command 0x0409 Add support for changing Loupedeck CT backlight levels Jul 5, 2020
@Corion
Copy link
Author

Corion commented Jul 5, 2020

The read/set register commands are not necessary for raising/lowering the backlight level.

They might be nice, so the backlight level survives a device reboot, but only, if the next application also reads the initial level from the register.

Reading/writing the register does not change the lights at all. Only the 0x0409 command changes the lights.

@randomeizer
Copy link
Contributor

Oh, it's the whole second byte of register 2. Got it.

@latenitefilms
Copy link
Contributor

Thanks heaps @Corion - HUGELY appreciated!

I'll have a play with this when I get a chance.

If you stumble across any other functions, let me know.

@latenitefilms
Copy link
Contributor

Will be addressed in #2375

latenitefilms added a commit that referenced this issue Aug 8, 2020
- Fixed bug where "Copy Control to All Banks" didn’t update knob text
labels.
- Added actions for manually changing applications on the Loupedeck CT,
as well as changing and launching applications.
- Added support for changing Loupedeck CT backlight levels.
- Added Applications Managers for Disk Utility, System Preferences,
TextEdit and Zoom.
- Closes #2367
- Closes #2349
- Closes #2280
- Closes #1848
- Closes #2378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants