{"id":16516613,"url":"https://github.com/eadf/esp8266_tachometer","last_synced_at":"2026-06-09T17:31:19.162Z","repository":{"id":27635979,"uuid":"31120568","full_name":"eadf/esp8266_tachometer","owner":"eadf","description":"A simple tachometer","archived":false,"fork":false,"pushed_at":"2015-03-02T16:58:13.000Z","size":188,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T18:19:14.069Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eadf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-21T09:15:55.000Z","updated_at":"2020-04-04T06:53:31.000Z","dependencies_parsed_at":"2022-09-03T00:57:32.140Z","dependency_job_id":null,"html_url":"https://github.com/eadf/esp8266_tachometer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eadf/esp8266_tachometer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_tachometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_tachometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_tachometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_tachometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eadf","download_url":"https://codeload.github.com/eadf/esp8266_tachometer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_tachometer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34118751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":[],"created_at":"2024-10-11T16:25:46.262Z","updated_at":"2026-06-09T17:31:19.137Z","avatar_url":"https://github.com/eadf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp8266_tachometer\nA simple tachometer implementation. This used to be a sub-module in [another project](https://github.com/eadf/esp8266_digoleserial).\n\nIt works by setting up a periodic timer and an interrupt. \nThe interrupt increases a counter each time the GPIO alters state. \nThe timer calculates the number of alternations over time and presents the frequency [Hz] to the 'clients'.\n\n###Public API\n\nSetup the GPIO,interrupt and timer:\n\n```void tachometer_init(uint8_t ioPin);```\n\nReturns the frequency from the last timer period:\n\n```uint32_t tachometer_getSample(void);```\n\n###Example\n\nSee [esp8266_digoleserial demo.](https://github.com/eadf/esp8266_digoleserial)\n\n\n###Todo\n* remove hardcoded timer period\n* Implementation uses global static data so there can only be on call to ```tachometer_init()```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feadf%2Fesp8266_tachometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feadf%2Fesp8266_tachometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feadf%2Fesp8266_tachometer/lists"}