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

Possible solution for Loupedeck CT V2 #33

Open
elementalTIMING opened this issue Feb 20, 2024 · 2 comments
Open

Possible solution for Loupedeck CT V2 #33

elementalTIMING opened this issue Feb 20, 2024 · 2 comments

Comments

@elementalTIMING
Copy link

Hi,

after playing a bit with your code I found a possible solution for the CT V2 (#27). Because I've no published repo for this I put the small changes here in the text.

In device.js change productID to:

class LoupedeckCT extends LoupedeckLive {
	static productId = 0x0007;

The CT is now discovered BUT the grid is not drawn anymore. Originally I did a mistake and and changed the productID in the LoupedeckLive but not in the LoupedeckCT. But after fixing my mistake the grid buttons are not shown or updated anymore.

You also need to modify the id in the displays. Here you can use the same values from the LoupedeckLive, wich seems to work pretty well.

class LoupedeckCT extends LoupedeckLive {
	static productId = 0x0007;
	displays = {
		// values from LoupedeckLive
		center: { id: Buffer.from('\x00M'), width: 360, height: 270, offset: [60, 0] },
		left: { id: Buffer.from('\x00M'), width: 60, height: 270 },
		right: { id: Buffer.from('\x00M'), width: 60, height: 270, offset: [420, 0] },

		// original LoupedeckCT values
		// center: { id: Buffer.from('\x00A'), width: 360, height: 270 }, // "A"
		// left: { id: Buffer.from('\x00L'), width: 60, height: 270 }, // "L"
		// right: { id: Buffer.from('\x00R'), width: 60, height: 270 }, // "R"
		knob: { id: Buffer.from('\x00W'), width: 240, height: 240, endianness: 'be' }, // "W"
	};

You can keep the rest of the code as it is. That's it and all CT function work now. I hope that this will help somebody here.

@foxxyz
Copy link
Owner

foxxyz commented Feb 21, 2024

This is great, thank you! Looks a lot like the firmware change that has been affecting some of the other devices.

Are you able to submit a PR?

@elementalTIMING
Copy link
Author

This is great, thank you! Looks a lot like the firmware change that has been affecting some of the other devices.

Are you able to submit a PR?

Unfortunately not. I've never published anything to Git. It's something I need to deal with next summer ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants