# pinhead

> raspberry pi pin listener

Latest version **1.2.0** (published 2015-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install pinhead
pnpm add pinhead
yarn add pinhead
bun add pinhead
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2015-05-08 |
| First published | 2015-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | sam desborough |
| Maintainers | desbo |

## Links

- npm: https://www.npmjs.com/package/pinhead
- Repository: https://github.com/pebblecode/pinhead
- Homepage: https://github.com/pebblecode/pinhead#readme
- Issues: https://github.com/pebblecode/pinhead/issues
- npm.io page: https://npm.io/package/pinhead

## Dependencies (1)

- [rpi-gpio](https://npm.io/package/rpi-gpio.md) ^0.5.1

## Recent versions

- 1.2.0 (latest) — 2015-05-08
- 1.1.0 — 2015-05-08
- 1.0.0 — 2015-05-08

## README

# pinhead
![pinhead](http://www.clivebarker.info/pinheader.jpg)

listen to changes on raspberry pi pins

## pinhead(config)
`config` supports these properties:
  * pin (pin number to listen to)
  * interval (poll rate)
  * delay (time to wait between broadcasting changes)

## example usage
    var pinhead = require('pinhead');
    var pin22 = pinhead({
      pin: 22
    });

    pin22.on('change', function (val) {
      console.log('the pin value changed to', val);
    });

---
_Source: https://npm.io/package/pinhead · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
