{"id":16156862,"url":"https://github.com/saghul/python-asiri","last_synced_at":"2026-07-11T09:31:16.148Z","repository":{"id":11494563,"uuid":"13969720","full_name":"saghul/python-asiri","owner":"saghul","description":"GPIO interface for Asiri board with a MCP230XX chip","archived":false,"fork":false,"pushed_at":"2013-10-29T21:44:13.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-05T11:03:37.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/saghul.png","metadata":{"files":{"readme":"README.rst","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":"2013-10-29T21:43:51.000Z","updated_at":"2013-10-31T00:45:22.000Z","dependencies_parsed_at":"2022-09-22T23:10:41.431Z","dependency_job_id":null,"html_url":"https://github.com/saghul/python-asiri","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saghul/python-asiri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fpython-asiri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fpython-asiri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fpython-asiri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fpython-asiri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saghul","download_url":"https://codeload.github.com/saghul/python-asiri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saghul%2Fpython-asiri/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35358880,"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-07-11T02:00:05.354Z","response_time":104,"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-10T01:46:51.375Z","updated_at":"2026-07-11T09:31:16.117Z","avatar_url":"https://github.com/saghul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\npython-asiri\n============\n\nOverview\n--------\n\npython-asiri provides a Python interface similar to the Raspberry Pi GPIO libery for working\nwith GPIO in Asri, using a MCP230xx chip.\n\n\nFeatures\n--------\n\n* Handling of digital inputs / outputs\n* Support for builtin pullup resistors\n\n\nAPI\n---\n\nAll functionality is baked into the ``GPIO`` class.\n\nImporting the ``GPIO`` object::\n\n    from asiri import GPIO\n\nCreating a ``GPIO`` instance for working with the MCP23017::\n\n    my_gpio = GPIO(num_gpios=16)\n\nConfiguring a pin as output::\n\n    my_gpio.setup(8, GPIO.OUT)\n\nSetting an output pin to high::\n\n    my_gpio.output(8, GPIO.HIGH)\n\nSetting an output pin to low::\n\n    my_gpio.output(8, GPIO.LOW)\n\nConfiguring a pin as input::\n\n    my_gpio.setup(8, GPIO.IN)\n\nRead the value of a given pin::\n\n    value = my_gpio.input(8)\n\nNOTE: The pin numbering is as follows (for the MCP23017): bank A: pins 0-7, bank B: ping 8-15.\nOn these examples pin 8 was used, that is, B0, or pin 0 from bank B.\n\n\nToDo\n----\n\n* Add support for interrupts\n* Add functions to read all inputs from a given bank\n\n\nLicense\n-------\n\nBSD, derived from Adafruit's helper libraries.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaghul%2Fpython-asiri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaghul%2Fpython-asiri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaghul%2Fpython-asiri/lists"}