Ask Your Question

Revision history [back]

led controls for dinolite in lunix:

//led on memcpy(buf, "\x80\x01\xf1", 0x0000003); ret = usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000001, 0x0000300, 0x0000400, buf, 0x0000003, 1000);

//led off memcpy(buf, "\x80\x01\xf0", 0x0000003); ret = usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000001, 0x0000300, 0x0000400, buf, 0x0000003, 1000);

click to hide/show revision 2
No.2 Revision

updated 2019-01-25 08:34:58 -0600

berak gravatar image

led controls for dinolite in lunix:lunix: .

//led on
memcpy(buf, "\x80\x01\xf1", 0x0000003);
ret = usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000001, 0x0000300, 0x0000400, buf, 0x0000003, 1000);

1000);

//led off memcpy(buf, "\x80\x01\xf0", 0x0000003); ret = usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000001, 0x0000300, 0x0000400, buf, 0x0000003, 1000);

1000);