PiPHP / PiPin

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PiPin

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.

About

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

License:MIT License


Languages

Language:PHP 100.0%