{"id":16557994,"url":"https://github.com/used255/go-aht20","last_synced_at":"2026-05-07T12:32:31.449Z","repository":{"id":57707182,"uuid":"482455008","full_name":"USED255/go-aht20","owner":"USED255","description":"https://github.com/tinygo-org/drivers/tree/release/aht20 of https://github.com/d2r2/go-i2c Transplant","archived":false,"fork":false,"pushed_at":"2024-03-19T12:43:10.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T08:59:33.131Z","etag":null,"topics":["golang","i2c","raspberry-pi","sensor"],"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/USED255.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-04-17T07:19:05.000Z","updated_at":"2022-06-14T12:04:54.000Z","dependencies_parsed_at":"2023-12-11T15:28:13.004Z","dependency_job_id":"2593d747-42f1-4ba9-b03f-92aa4b2ffde5","html_url":"https://github.com/USED255/go-aht20","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USED255%2Fgo-aht20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USED255%2Fgo-aht20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USED255%2Fgo-aht20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USED255%2Fgo-aht20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/USED255","download_url":"https://codeload.github.com/USED255/go-aht20/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241940529,"owners_count":20045878,"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":["golang","i2c","raspberry-pi","sensor"],"created_at":"2024-10-11T20:09:16.220Z","updated_at":"2026-05-07T12:32:31.445Z","avatar_url":"https://github.com/USED255.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-aht20\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/used255/go-aht20)](https://pkg.go.dev/github.com/used255/go-aht20)\n[![MIT License](https://img.shields.io/badge/License-MIT-green)](./LICENSE)\n\nhttps://github.com/tinygo-org/drivers/tree/release/aht20 of https://github.com/d2r2/go-i2c Transplant.\n\n[AHT20 产品规格书](http://www.aosong.com/userfiles/files/media/AHT20%E4%BA%A7%E5%93%81%E8%A7%84%E6%A0%BC%E4%B9%A6(%E4%B8%AD%E6%96%87%E7%89%88)%20B1.pdf)\n[AHT20 Datasheet](http://www.aosong.com/userfiles/files/media/AHT20%20%E8%8B%B1%E6%96%87%E7%89%88%E8%AF%B4%E6%98%8E%E4%B9%A6%20A0%2020201222.pdf)\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/d2r2/go-i2c\"\n\tlogger \"github.com/d2r2/go-logger\"\n\n\t\"github.com/used255/go-aht20\"\n)\n\nfunc main() {\n\t//logger.ChangePackageLogLevel(\"i2c\", logger.DebugLevel)\n\tlogger.ChangePackageLogLevel(\"aht20\", logger.DebugLevel)\n\n\tbus, err := i2c.NewI2C(0x38, 1)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer bus.Close()\n\n\ts := aht20.New(bus)\n\ts.Configure()\n\n\terr = s.Read()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(\"温度:\", s.Celsius(), \"℃\")\n\tfmt.Println(\"相对湿度:\", s.RelHumidity(), \"%\")\n}\n```\n\n## Acknowledgments\n- [AHT20 Temperature \u0026 Humidity for Python I2C](https://github.com/Chouffy/python_sensor_aht20)\n- [I2C-bus interaction of peripheral sensors with Raspberry PI embedded Linux or respective clones](https://github.com/d2r2/go-i2c)\n- [TinyGo Drivers](https://github.com/tinygo-org/drivers)\n- [广州奥松电子股份有限公司](https://www.aosong.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fused255%2Fgo-aht20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fused255%2Fgo-aht20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fused255%2Fgo-aht20/lists"}