mirror of https://github.com/nealey/hdjd.git
Set LED states
This commit is contained in:
parent
373b237be9
commit
6476f2838b
16
hdjd.c
16
hdjd.c
|
@ -34,6 +34,14 @@ main(int argc, char **argv)
|
||||||
return 69;
|
return 69;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Make Deck A cue button flash. */
|
||||||
|
{
|
||||||
|
int transferred;
|
||||||
|
|
||||||
|
uint8_t cmd[] = { 0x90, 0x3e, 0x7f };
|
||||||
|
libusb_bulk_transfer(handle, 0x03, cmd, 3, &transferred, 0);
|
||||||
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
uint8_t data[80];
|
uint8_t data[80];
|
||||||
int transferred;
|
int transferred;
|
||||||
|
@ -49,6 +57,14 @@ main(int argc, char **argv)
|
||||||
printf("%02x ", data[i]);
|
printf("%02x ", data[i]);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
/* Cram it right back out */
|
||||||
|
|
||||||
|
if ((ret = libusb_bulk_transfer(handle, 0x03,
|
||||||
|
data, transferred,
|
||||||
|
&transferred, 0))) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Reference in New Issue