{"id":16525477,"url":"https://github.com/andrewn/raspi-cap","last_synced_at":"2026-05-10T18:55:02.353Z","repository":{"id":66464818,"uuid":"120490072","full_name":"andrewn/raspi-cap","owner":"andrewn","description":"Raspberry Pi / Node.js module for the CAP1188 capacitive touch breakout","archived":false,"fork":false,"pushed_at":"2018-02-10T14:48:52.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T14:16:22.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-06T16:42:03.000Z","updated_at":"2019-02-09T23:30:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdc8cfcb-29e8-4896-8c7e-8e3fa5a25045","html_url":"https://github.com/andrewn/raspi-cap","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"5037d546642b228b8249b55fd8c7b1071e02b162"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/andrewn/raspi-cap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fraspi-cap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fraspi-cap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fraspi-cap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fraspi-cap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewn","download_url":"https://codeload.github.com/andrewn/raspi-cap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fraspi-cap/sbom","scorecard":{"id":193876,"data":{"date":"2025-08-11","repo":{"name":"github.com/andrewn/raspi-cap","commit":"5037d546642b228b8249b55fd8c7b1071e02b162"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T21:24:03.879Z","repository_id":66464818,"created_at":"2025-08-16T21:24:03.879Z","updated_at":"2025-08-16T21:24:03.879Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32867988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T17:03:32.430Z","updated_at":"2026-05-10T18:55:02.324Z","avatar_url":"https://github.com/andrewn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi / Node.js module for the CAP1188 capacitive touch breakout\n\nThe CAP1188 is an 8-channel capacitive touch sensor and is available in a handy [breakout board](https://www.adafruit.com/products/1602). This module enables I2C communication with the chip to easily get information about which pins are being touched. It's based on [Espruino CAP1188 lirrary](http://www.espruino.com/modules/CAP1188.js) which itself is based on the [Adafruit CAP1188 Arduino libary](https://github.com/adafruit/Adafruit_CAP1188_Library).\n\n## Wiring\n\nYou can wire this up as follows:\n\n| Device Pin | Pi                                                              |\n| ---------- | --------------------------------------------------------------- |\n| 1 (GND)    | [Ground](https://pinout.xyz/pinout/ground)                      |\n| 2 (VIN)    | [3.3v](https://pinout.xyz/pinout/pin1_3v3_power)                |\n| 3 (SDA)    | [BCM 2/SDA](https://pinout.xyz/pinout/pin3_gpio2)               |\n| 4 (SCK)    | [BCM 3/SCL](https://pinout.xyz/pinout/pin5_gpio3)               |\n| RST        | [BCM 17 (0)](https://pinout.xyz/pinout/pin11_gpio17) Optional\\* |\n\n* Any GPIO pin can be used, see [Reset]() below.\n\n## Install\n\n### Enable I2C on the Pi\n\n1. `sudo raspi-config`\n2. \"Interfacing Options\"\n3. \"I2C\"\n4. \"Would you like the ARM I2C interface to be enabled?\" -\u003e \"YES\"\n5. \"OK\"\n6. \"Finish\"\n\n### Install this library\n\n`npm install --save https://github.com/andrewn/raspi-cap/archive/master.tar.gz`\n\n## Usage\n\nBasic usage:\n\n```js\nconst connect = require(\"raspi-cap\").connect;\n\n// Connect to the CAP1188 breakout.\n// When it's ready, the Promise resolves\n// with the CAP1188 instance\nconnect().then(cap1188 =\u003e {\n  // Returns an array of 8 items for pins C1 - C8\n  //  true indicates a touch, false is no touch\n  // e.g. C6 is being touched\n  // [ false, false, false, false, false, true, false, false ]\n  const touches = cap1188.readTouches();\n  console.log(touches);\n});\n```\n\nSee the [`examples`](./examples) directory for more examples.\n\n### Reset\n\nOptionally, you can connect the reset pin on the board (marked RST), to a pin on the Pi. Call the `reset()` method to reinitialize the sensor which can recalibrate it instead of having to cycle the power. A Promise is returned that resolves when the board has been reset.\n\nSee [this page about how to specify a pin](https://github.com/nebrius/raspi-gpio#pin-naming).\n\nIn addition, the `reset` event is also emitted.\n\n```\nvar cap = require(\"CAP1188\").connect(I2C1, { resetPin: 0 }); // using WiringPi number for BCM17\ncap.reset(function () {\n  // the board has been reset\n});\n```\n\n## GUI\n\nThere's a tiny GUI you can run:\n\n    sudo raspi-cap-debug\n\nIt'll show red circles (🔴) for untouched pins and blue circles (🔵) for touched pins.\n\n## Buying\n\n* [Adafruit](https://www.adafruit.com/products/1602)\n\n## Future plans\n\n* Add support for calling `reset()` to reset the board via the Reset pin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Fraspi-cap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewn%2Fraspi-cap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Fraspi-cap/lists"}