Skip to content

Instantly share code, notes, and snippets.

View marelab's full-sized avatar

Marc Philipp Hammermann marelab

View GitHub Profile
@marelab
marelab / USB2SPI.c
Created March 26, 2024 21:26
USB2SPI
// Quite minimal example showing how to configure MPSSE for SPI using libftdi
// compile like this: g++ minimal_spi.cpp -o minimal_spi -lftdipp -lftdi
//#include "../ftdipp/ftdi.hpp"
#include "ftdi.h"
#include <usb.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
// FT232H development module