# gpio-c.h.i.p

> Simple libray for C.H.I.P $9 Dollars

Latest version **0.1.0** (published 2017-03-08) · 0 weekly downloads

## Install

```sh
npm install gpio-c.h.i.p
pnpm add gpio-c.h.i.p
yarn add gpio-c.h.i.p
bun add gpio-c.h.i.p
```

## 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 | 2017-03-08 |
| First published | 2017-03-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | aonoxh |
| Keywords | node, c.h.i.p, chip, gpio, gpio-c.h.i.p |

## Links

- npm: https://www.npmjs.com/package/gpio-c.h.i.p
- Repository: https://github.com/aonoxh/gpio-c.h.i.p
- Homepage: https://github.com/aonoxh/gpio-c.h.i.p#readme
- Issues: https://github.com/aonoxh/gpio-c.h.i.p/issues
- npm.io page: https://npm.io/package/gpio-c.h.i.p

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-03-08
- 0.0.16-a — 2017-03-08
- 0.0.15-a — 2017-03-08
- 0.0.14-a — 2017-03-08
- 0.0.13-a — 2017-03-08
- 0.0.12-a — 2017-03-08
- 0.0.11-a — 2017-03-08
- 0.0.10-a — 2017-03-08
- 0.0.9-a — 2017-03-08
- 0.0.8-a — 2017-03-08
- 0.0.7-a — 2017-03-08
- 0.0.6-a — 2017-03-08
- 0.0.5-a — 2017-03-06

## README

# GPIO-C.H.I.P 

How to use

```javascript
var GPIO = require('gpio-c.h.i.p');

GPIO.exportAll();

GPIO.unexportAll();

```

If you don´t export, is exported automatically.

Use ```GPIO.export(gpio_port)```
```javascript
GPIO.export(4);
```

Use ```GPIO.unexport(gpio_port)```
```javascript
GPIO.unexport(4);
```

Use ```GPIO.read(gpio_port)```
```javascript
var value = GPIO.read(0);
console.log(value);
```

Use ```GPIO.write(gpio_port, state, direction)```
```javascript
GPIO.write(4, 1, GPIO.IN | GPIO.OUT);
```

Use ```GPIO.direction(gpio_port, direction)```
```javascript
GPIO.direction(4, GPIO.IN |	GPIO.OUT);
```

Use ```GPIO.isExported()```
```javascript
if(GPIO.isExported(4)){
	console.log("Yes");
}
```

Use ```GPIO.isChip()```
```javascript
if(GPIO.isChip()){
	console.log("I´m better than RPI");
}
```

Objects ```new GPIO.Gpio(gpio_port, direction)```
```javascript
var led = new Gpio(4, GPIO.OUT);
led.off(); // Value = 0;
led.on(); // Value = 1;
if(led.read() == 0){
	led.on();
}
```

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