Hi, thank you very very much for your code.
I received my 12 keys/2 knobs model and I can confirm that it has the same USB id 1189:8890 which is shown by my Debian GNU/Linux as Acer Communications & Multimedia CH57x. I was able to extend your source code, compile and use it to program the device.
You have just to extend the existing definitions:
#define BUTTON_1 0x01
#define BUTTON_2 0x02
#define BUTTON_3 0x03
#define BUTTON_4 0x04
#define BUTTON_5 0x05
#define BUTTON_6 0x06
#define BUTTON_7 0x07
#define BUTTON_8 0x08
#define BUTTON_9 0x09
#define BUTTON_10 0x0a
#define BUTTON_11 0x0b
#define BUTTON_12 0x0c
#define KNOB_1_LEFT 0x0d
#define KNOB_1_PRESS 0x0e
#define KNOB_1_RIGHT 0x0f
#define KNOB_2_LEFT 0x10
#define KNOB_2_PRESS 0x11
#define KNOB_2_RIGHT 0x12
// Modify these lines to your taste
set_key(dh, BUTTON_1, KEY_A);
set_key(dh, BUTTON_2, KEY_B);
set_key(dh, BUTTON_3, KEY_C);
set_key(dh, BUTTON_4, KEY_D);
set_key(dh, BUTTON_5, KEY_E);
set_key(dh, BUTTON_6, KEY_F);
set_key(dh, BUTTON_7, KEY_G);
set_key(dh, BUTTON_8, KEY_H);
set_key(dh, BUTTON_9, KEY_I);
set_key(dh, BUTTON_10, KEY_J);
set_key(dh, BUTTON_11, KEY_K);
set_key(dh, BUTTON_12, KEY_L);
set_key(dh, KNOB_1_LEFT, KEY_M);
set_key(dh, KNOB_1_PRESS, KEY_N);
set_key(dh, KNOB_1_RIGHT, KEY_O);
set_key(dh, KNOB_2_LEFT, KEY_P);
set_key(dh, KNOB_2_PRESS, KEY_Q);
set_key(dh, KNOB_2_RIGHT, KEY_R);
Hi, thank you very very much for your code.
I received my 12 keys/2 knobs model and I can confirm that it has the same USB id 1189:8890 which is shown by my Debian GNU/Linux as Acer Communications & Multimedia CH57x. I was able to extend your source code, compile and use it to program the device.
You have just to extend the existing definitions:
Then you can program the keys (here I programmed the codes for keys A through R for testing purpose):