Skip to content

Instantly share code, notes, and snippets.

View vinifr's full-sized avatar

Vinicius Maciel vinifr

  • Freelancer
  • BRAZIL
View GitHub Profile
@vdudouyt
vdudouyt / client.c
Last active February 28, 2021 14:21
USB bulk device example with libopencm3 & libusb-1.0
#include <libusb.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
int main()
{
libusb_init(NULL);
libusb_device_handle *handle;
assert(handle = libusb_open_device_with_vid_pid(NULL, 0x0483, 0x5740));