Coder Social home page Coder Social logo

villaperros / pdwiringpi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from garthz/pdwiringpi

0.0 2.0 0.0 104 KB

Pure Data (pd) external for hardware I/O on a Raspberry Pi using wiringPi.

License: BSD 3-Clause "New" or "Revised" License

Makefile 12.78% C 87.22%

pdwiringpi's Introduction

pdwiringPi

This repository contains an 'external' (plugin) for Pure Data to communicate with hardware on a Raspberry Pi using the wiringPi library.

This code should be assumed to be alpha-quality, it has been minimally tested but is under active development.

The main [wiringPi] object can act either as a generic wrapper for the library or can be bound to a specific I/O pin. In the pin-specific mode, a [bang] input will read the pin and a numeric input will change the pin state. In the generic mode, messages on the input are interpreted as function calls and are mapped to the supported library API calls.

If pd is run as root (e.g. using sudo), then the object uses the direct hardware API which is faster and more versatile. Without root permission, the object falls back to the slower and less capable /sys/class/gpio interface.

The object assumes that the wiringPi installation includes the 'gpio' program and will run it using system() if needed.

Compiling

System requirements: make, a C compiler, a Pd installation, and wiringPi.

A simple Makefile is provided for compiling directly on a Raspberry Pi:

make

Installation

There are two files to be installed:

  1. the loadable module: wiringPi.pd_linux
  2. wiringPi-help.pd

If compiled in-place, the build folder named pdwiringPi/ can simply be added to the pd load path. Or these files can be copied to an existing pd externals folder such as /usr/local/lib/pd-externals.

pdwiringpi's People

Contributors

garthz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.