/LittleWireSPI

This little wrapper is used to bridge RF24 to LittleWire SPI

Primary LanguageC++

LittleWireSPI

This is a small wrapper library for using code formely designed for Arduino to run on an ordinary PC-like machine with libusb, especially the excellent family of libraries:

by using Ihsan Kehribar's LittleWire hardware/software projects which allows to call SPI on hardware level via a small device over USB from a libusb-capable operating system.

This approach needs approximately 1ms per SPI call, so it is not very fast (around 1 kHz), but it works.

Clone Repository

This repository has submodules, so these has to be initialized after initial checkout:

git submodule init
git submodule update

Installation

Currently tested on Linux and MacOS:

  • Edit Makefile to match your install prefix PREFIX if neccessary
  • run make install (maybe using sudo if neccessary)

I can strongly suggest to use a fixed path for all RF24-related stuff like I did in using

/opt/LittleWirePrefix

for all projects to get everything in one place without using sudo or running as root. The only thing you need to do is creating and chowning the directory as root to your default user and stick with it.

Packages

There is also a prebuilt Debian Wheezy (amd64) package available:

RELEASE TBD