{"id":17334839,"url":"https://github.com/tfeldmann/arduino-schmitttrigger","last_synced_at":"2025-07-29T18:02:11.399Z","repository":{"id":141241942,"uuid":"267318815","full_name":"tfeldmann/Arduino-SchmittTrigger","owner":"tfeldmann","description":"A lightweight schmitt trigger for debouncing and filtering.","archived":false,"fork":false,"pushed_at":"2023-10-01T11:24:54.000Z","size":24,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T18:50:34.559Z","etag":null,"topics":["arduino-library","platformio-library","schmitt-trigger"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tfeldmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"github":"tfeldmann","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"http://paypal.me/tfeldmann42"}},"created_at":"2020-05-27T12:52:46.000Z","updated_at":"2024-09-30T15:56:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"344105e0-3fcb-4fd8-bd04-e21bb9cc808b","html_url":"https://github.com/tfeldmann/Arduino-SchmittTrigger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tfeldmann/Arduino-SchmittTrigger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfeldmann%2FArduino-SchmittTrigger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfeldmann%2FArduino-SchmittTrigger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfeldmann%2FArduino-SchmittTrigger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfeldmann%2FArduino-SchmittTrigger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfeldmann","download_url":"https://codeload.github.com/tfeldmann/Arduino-SchmittTrigger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfeldmann%2FArduino-SchmittTrigger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267729003,"owners_count":24135246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["arduino-library","platformio-library","schmitt-trigger"],"created_at":"2024-10-15T15:07:19.433Z","updated_at":"2025-07-29T18:02:11.352Z","avatar_url":"https://github.com/tfeldmann.png","language":"C++","funding_links":["https://github.com/sponsors/tfeldmann","http://paypal.me/tfeldmann42"],"categories":[],"sub_categories":[],"readme":"# Arduino-SchmittTrigger\n\n[![tests][gh-tests-badge]][gh-tests-link]\n\n## Installation\n\n```\npio lib install \"tfeldmann/SchmittTrigger\"\n```\n\n## Example usage:\n\nAssumes you have a potentiometer connected to A0 and a led connected to `PIN_LED`.\n\n- This will turn `PIN_LED` on potentiometer readings higher than `900`.\n- On readings lower than `800` `PIN_LED` will be pulled `LOW`.\n- On readings between `800` and `900` the LED state persists.\n\n```cpp\n#include \u003cSchmittTrigger.h\u003e\n\n// 800 is the switch off point\n// 900 is the switch on point\nSchmittTrigger\u003cint\u003e trigger(800, 900);\n\nvoid setup()\n{\n  pinMode(PIN_LED, OUTPUT);\n}\n\nvoid loop()\n{\n  trigger.input(analogRead(A0));\n  digitalWrite(PIN_LED, trigger.output());\n}\n```\n\n\u003c!-- badges and links --\u003e\n\n[gh-tests-badge]: https://github.com/tfeldmann/Arduino-SchmittTrigger/actions/workflows/tests.yml/badge.svg\n[gh-tests-link]: https://github.com/tfeldmann/Arduino-SchmittTrigger/actions/workflows/tests.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfeldmann%2Farduino-schmitttrigger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfeldmann%2Farduino-schmitttrigger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfeldmann%2Farduino-schmitttrigger/lists"}