piphp/pipin

A tool for accessing the GPIO pins on a Raspberry Pi

Maintainers

Details

github.com/PiPHP/PiPin

Source

Issues

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/piphp/pipin

v0.1.0 2015-12-16 14:54 UTC

This package is auto-updated.

Last update: 2025-09-19 16:29:24 UTC


README

A tool for managing the GPIO pins on a Raspberry Pi.

Usage

# Export/Unexport a pin
pipin export   [pin]
pipin unexport [pin]

# Reading a pin state
pipin value     [pin]
pipin direction [pin]
pipin edge      [pin]

# Changing a pin state
pipin value     [pin] [0|1]
pipin direction [pin] [in|out]
pipin edge      [pin] [none|both|falling|rising]

How To Install

Make sure you have composer installed, then:

composer global require piphp/pipin

Make sure you have added your global composer binary directory to the PATH in your ~/.bash_profile (or ~/.bashrc) file:

export PATH=~/.composer/vendor/bin:$PATH

This blog explains the process of global composer installs in more detail.