{"id":15538785,"url":"https://github.com/on0z/libadrsir-go","last_synced_at":"2026-02-24T07:35:26.248Z","repository":{"id":43115496,"uuid":"466038830","full_name":"on0z/libadrsir-go","owner":"on0z","description":"ビットトレードワン製赤外線送受信機ADRSIR用のライブラリ","archived":false,"fork":false,"pushed_at":"2023-03-18T07:41:51.000Z","size":23,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T02:58:14.877Z","etag":null,"topics":["go","golang","raspberry-pi","raspberrypi"],"latest_commit_sha":null,"homepage":"","language":"Go","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/on0z.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-04T08:16:05.000Z","updated_at":"2022-03-12T08:38:25.000Z","dependencies_parsed_at":"2024-11-15T02:57:13.134Z","dependency_job_id":"ab456083-89ae-4155-a506-3332537ac5aa","html_url":"https://github.com/on0z/libadrsir-go","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"533407445d110320cdedff6ac386516bc1042ed9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/on0z/libadrsir-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/on0z%2Flibadrsir-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/on0z%2Flibadrsir-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/on0z%2Flibadrsir-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/on0z%2Flibadrsir-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/on0z","download_url":"https://codeload.github.com/on0z/libadrsir-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/on0z%2Flibadrsir-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29775008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: 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":["go","golang","raspberry-pi","raspberrypi"],"created_at":"2024-10-02T12:06:19.324Z","updated_at":"2026-02-24T07:35:26.230Z","avatar_url":"https://github.com/on0z.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libadrsir-go\ngolang製 ビットトレードワン赤外線送受信機 ADRSIR 用のライブラリ\n\ni2cのライブラリはperiphのものを使用することを想定している\n\n# How to use\n\nsee more: https://github.com/on0z/libadrsir-go/blob/main/cmd/libadrsir-sample/main.go\n\n```golang\npackage main\n\nimport (\n\t\"log\"\n\n\t\"periph.io/x/conn/v3/i2c\"\n\t\"periph.io/x/conn/v3/i2c/i2creg\"\n\thost \"periph.io/x/host/v3\"\n\n\tlibadrsir \"github.com/on0z/libadrsir-go\"\n)\n\nfunc main() {\n\t// setup periph.io host\n\t_, err := host.Init()\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to initialize periph: %v\", err)\n\t}\n  \n\t// Use i2creg I²C bus registry to find the first available I²C bus.\n\tb, err := i2creg.Open(\"\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer b.Close()\n\n\t// Dev is a valid conn.Conn.\n\td := \u0026i2c.Dev{Addr: uint16(libadrsir.ADDR), Bus: b}\n\n\tadrsir := libadrsir.NewADRSIR(d)\n\tadrsir.Send(\"00002800D00029003900160038001600120016001300160012001700120016001300160012001700380016001200170012001600130016001200170012001600130016003800160013001600380016001300160012001700120016001300160012001700120016001300160012001700120016001300160012001700120016001300160012001700120016003900160012001600390016003800160012001600390016003800160011004205\")\n}\n```\n\n\n# 参考\nhttps://github.com/tokieng/adrsirlib/blob/master/adrsirlib.py\n\nhttps://bit-trade-one.co.jp/blog/2017121302/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fon0z%2Flibadrsir-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fon0z%2Flibadrsir-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fon0z%2Flibadrsir-go/lists"}