Exemplo n.º 1
0
static int teensy_open(void)
{
	teensy_close();
	uhid_teensy_fd = open_usb_device(0x16C0, 0x0478);
	if (uhid_teensy_fd < 0) return 0;
	return 1;
}
Exemplo n.º 2
0
static int teensy_open(void)
{
	teensy_close();
	iokit_teensy_reference = open_usb_device(0x16C0, 0x0478);
	if (iokit_teensy_reference) return 1;
	return 0;
}
Exemplo n.º 3
0
static int teensy_open(void)
{
	teensy_close();
	win32_teensy_handle = open_usb_device(0x16C0, 0x0478);
	if (win32_teensy_handle) return 1;
	return 0;
}
Exemplo n.º 4
0
int teensy_open(int hid, int pid)
{
	teensy_close();
	libusb_teensy_handle = open_usb_device(hid, pid);

	if (!libusb_teensy_handle) return 0;
	return 1;
}
Exemplo n.º 5
0
int teensy_open(void)
{
	teensy_close();
	libusb_teensy_handle = open_usb_device(0x16C0, 0x0478);

	if (!libusb_teensy_handle)
		libusb_teensy_handle = open_usb_device(0x03eb, 0x2067);

	if (!libusb_teensy_handle) return 0;
	return 1;
}
Exemplo n.º 6
0
int teensy_open(void)
{
	teensy_close();
	iokit_teensy_reference = open_usb_device(0x16C0, 0x0478);

	if (!iokit_teensy_reference)
		iokit_teensy_reference = open_usb_device(0x03eb, 0x2067);

	if (!iokit_teensy_reference) return 0;
	return 1;
}
Exemplo n.º 7
0
JNIEXPORT void JNICALL Java_org_waxbee_Teensy_close(JNIEnv *env, jobject obj)
{
	teensy_close();
}