# caf_piface

> Cloud Assistants lib to interact with Pi-Face hardware

Latest version **0.1.0** (published 2014-10-26) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-10-26 |
| First published | 2013-02-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.1  |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Antonio Lain |
| Maintainers | antlai |

## Links

- npm: https://www.npmjs.com/package/caf_piface
- npm.io page: https://npm.io/package/caf_piface

## Dependencies (1)

- [spi](https://npm.io/package/spi.md) https://github.com/RussTheAerialist/node-spi/tarball/master

## Recent versions

- 0.1.0 (latest) — 2014-10-26
- 0.0.1 — 2013-02-17

## README

# CAF (Cloud Assistant Framework)

Co-design permanent, active, stateful, reliable cloud proxies with your web app.

See http://www.cafjs.com 

## CAF Library to interact with PiFace using SPI

Port of python library in 

https://github.com/thomasmacpherson/piface

to node.js/JavaScript (using https://github.com/RussTheAerialist/node-spi)

## API

see `lib/main.js` jsdoc

    >  pif = require('caf_piface')
       { PiFace: [Function] }
    >  p = new pif.PiFace()
       { spi: { _spi: {}, device: '/dev/spidev0.0' } }
    > p.init()
      undefined
    > p.write(1,7)
      true
    > p.readOutput(7)
      1
    > p.readOutput()
      128
    > p.read()
      0       // no button pressed
    > p.read()
      8       // pressing fourth button
    > p.shutdown()

      

 
## Configuration Example

### framework.json

None

### ca.json

None

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