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.
This repository has submodules, so these has to be initialized after initial checkout:
git submodule init
git submodule update
Currently tested on Linux and MacOS:
- Edit
Makefile
to match your install prefixPREFIX
if neccessary - run
make install
(maybe usingsudo
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.
There is also a prebuilt Debian Wheezy (amd64) package available:
RELEASE TBD