Userspace Arduino:Libraries

This page has a list of all the libraries and the functions that are supported by Userspace Arduino project.

Functions : Core Arduino

 * GREEN means implemented and tested
 * YELLOW means WIP and testing
 * RED means yet to implement

Functions : Wire
The library is under test and has been tested with the MPU-6050 sketch.

The onRequest and onReceive functions are unlikely to be supported since the I2C userland drivers don't provide interrupt-oriented callbacks.

Sample Code
Following is a tutorial on how to use the STH-39D1126 stepper motor with the BeagleBone Black and the Userspace-Arduino library /* Based on Adafruit Arduino - Lesson 16. 4 Wire stepper interface for STH-39D1126(1.8deg/step)


 * 1) include 

int in1Pin = 2; int in2Pin = 4; int in3Pin = 10; int in4Pin = 11;

Stepper motor(200, in1Pin, in2Pin, in3Pin, in4Pin);

void setup {		pinMode(in1Pin, OUTPUT); pinMode(in2Pin, OUTPUT); pinMode(in3Pin, OUTPUT); pinMode(in4Pin, OUTPUT); motor.setSpeed(20); }

void loop {		motor.step(5); delay(2000); }

Functions : Servo

 * Userspace_Arduino
 * Userspace_Arduino:To Do