{"id":13802328,"url":"https://github.com/BramRausch/encoderLib","last_synced_at":"2025-05-13T13:30:37.965Z","repository":{"id":79676370,"uuid":"66039457","full_name":"BramRausch/encoderLib","owner":"BramRausch","description":"MicroPython library to handle a rotary encoder","archived":false,"fork":false,"pushed_at":"2016-08-28T17:05:23.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-22T12:35:08.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/BramRausch.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}},"created_at":"2016-08-19T00:21:44.000Z","updated_at":"2023-11-30T13:46:04.000Z","dependencies_parsed_at":"2023-05-14T13:15:36.615Z","dependency_job_id":null,"html_url":"https://github.com/BramRausch/encoderLib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BramRausch%2FencoderLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BramRausch%2FencoderLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BramRausch%2FencoderLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BramRausch%2FencoderLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BramRausch","download_url":"https://codeload.github.com/BramRausch/encoderLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253949936,"owners_count":21989273,"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","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-08-04T00:01:42.134Z","updated_at":"2025-05-13T13:30:37.682Z","avatar_url":"https://github.com/BramRausch.png","language":"Python","readme":"# encoderLib\r\nEncoderLib is a library to handle a rotary encoder in MicroPython\r\n\r\n## Functions\r\n### encoder\r\nThe encoder function initializes the library and it takes two parameters\r\n```\r\nencoderLib.encoder(int clk, int dt)\r\n```\r\n\r\n### getValue\r\nThe getValue function returns the rotation and should be called continuous\r\n\r\n### example\r\n```python\r\nimport encoderLib\r\n\r\nlast = 0\r\ne = encoderLib.encoder(12, 13) # Initializes the library with pin CLK on 12 and pin DT on 13\r\n\r\nwhile True:                    # Infinite loop\r\n  value = e.getValue()         # Get rotary encoder value\r\n  if value != last:            # If there is a new value do\r\n    last = value\r\n    print(value)               # In this case it prints the value\r\n```\r\n","funding_links":[],"categories":["Libraries"],"sub_categories":["IO"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBramRausch%2FencoderLib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBramRausch%2FencoderLib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBramRausch%2FencoderLib/lists"}