Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Apr 9, 2015
Commits on Jun 19, 2013
  1. Initial support for Wiring Pi version 2

    (tested with 2.0.7)
    This commit doesn't differ too much from the version 1 support, except
    for the addition of wpi:setup_phys/0 and building with
    wiringPiDev (for the LCD library).
    Ought to fix #5.
  2. Expose the setup, setup_gpio and setup_sys

    This is a backwards-incompatible change while preparing for wiringPi
    version 2 support.  This commit still supports wiringPi version 1.
    Previously the setup function - wiringPiSetup() - was called when the
    NIF was loaded.  The downside with that approach was that wpi had to
    be run as root, although the nice thing was that a user wouldn't have
    to worry about calling setup before accessing pins.
    After some consideration I've (despite breaking backwards
    compatibility) decided to remove the setup from the NIF loading and
    let the user choose the method.
    Hopefully fixes issue #4.
Commits on Jun 10, 2013
  1. Point urls at

Commits on Oct 9, 2012
  1. Write an edoc note on the fact that serial_get_char may hang the emul…

    Thanks to Tony Rogvall for the reminder.
Commits on Oct 8, 2012
  1. Document all functions

Commits on Sep 18, 2012
  1. @daha

    Added a few missing guards plus minor style changes,

    daha committed
    to conform to the rest of the code
  2. @daha
Commits on Sep 17, 2012
  1. @daha
  2. @daha

    Wrap the SPI library

    daha committed
Commits on Sep 15, 2012
  1. @daha

    Wrap the serial library

    daha committed
  2. @daha
Commits on Aug 25, 2012
  1. Wrap the soft PWM library

  2. Wrap the shift library

    This is untested, use with care.
Commits on Aug 20, 2012
  1. Wrap the LCD library

    All functions are supported, except `lcdPrintf' which is instead
    replaced by lcd_format which supports erlang-style format strings and
    arbirary terms.
Commits on Jul 29, 2012
Commits on Jul 27, 2012
  1. Suffix the nif functions to allow an extra layer of guards and erlang…

    … code
    This makes it possible to for example accept atoms for input/output
    further on instead of solely relying on macros which makes interactive
    use a bit easier.
Commits on Jul 21, 2012
  1. Adapt to GPIO mode changes in the WiringPi API

    Remove the gpio_mode function, since the wiringPiGpioMode function in
    the WiringPi C API has been removed and replaced by new setup
    functions. Note that this library currently only supports
    wiringPiSetup(), not wiringPiSetupGpio() nor wiringPiSetupSys().
    This means that it's currently only possible to use the WiringPi pin
    numbering scheme outlined here:
Commits on Jul 3, 2012
  1. First version of a WiringPi NIF

Something went wrong with that request. Please try again.