# qt1070

> Driver library for the QT1070 touch sensor

Latest version **1.1.0** (published 2019-09-06) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2019-09-06 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nico De Witte |
| Maintainers | bioboost |
| Keywords | qt1070, touch, i2c |

## Links

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

## Dependencies (1)

- [i2c-bus](https://npm.io/package/i2c-bus.md) ^4.0.10

## Recent versions

- 1.1.0 (latest) — 2019-09-06

## README

# Touch QT1070 Library

NodeJS Driver library for the QT1070 touch sensor. Currently only tested on the Raspberry Pi 3.

Single key detection only since QT1070 does not support multikey.

## Dependencies

This library makes use of:

* [i2c-bus](https://www.npmjs.com/package/i2c-bus) to communicate with i2c devices

## Example

The i2c object needs to be injected via the constructor.

A basic example:

```js
const Qt1070 = require('qt1070');
const i2c = require('i2c-bus');

const i2c1 = i2c.open(1, (err) => {
  if (err) throw err;
  console.log("Opened i2c bus successfully");

  let touch = new Qt1070(i2c1);

  console.log(`Chip id = ${touch.chip_id()}`);
  console.log(`Status = ${touch.status()}`);
  
  setInterval(() => {
    console.log(`Keys = ${touch.keys()}`);
  }, 50);
});
```

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