{"id":16389438,"url":"https://github.com/mnishiguchi/bh1750","last_synced_at":"2025-10-26T13:30:38.255Z","repository":{"id":44009750,"uuid":"453533988","full_name":"mnishiguchi/bh1750","owner":"mnishiguchi","description":"Use BH1750 16-bit ambient light sensor in Elixir","archived":false,"fork":false,"pushed_at":"2022-05-27T00:58:20.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-24T09:49:09.133Z","etag":null,"topics":["ambient-light-sensor","bh1750","elixir","nerves-project"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/mnishiguchi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-01-29T22:29:55.000Z","updated_at":"2022-02-03T02:40:05.000Z","dependencies_parsed_at":"2022-09-10T15:51:38.986Z","dependency_job_id":null,"html_url":"https://github.com/mnishiguchi/bh1750","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnishiguchi%2Fbh1750","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnishiguchi%2Fbh1750/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnishiguchi%2Fbh1750/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnishiguchi%2Fbh1750/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnishiguchi","download_url":"https://codeload.github.com/mnishiguchi/bh1750/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219862888,"owners_count":16555951,"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":["ambient-light-sensor","bh1750","elixir","nerves-project"],"created_at":"2024-10-11T04:32:59.155Z","updated_at":"2025-10-26T13:30:37.893Z","avatar_url":"https://github.com/mnishiguchi.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BH1750\n\n[![Hex version](https://img.shields.io/hexpm/v/bh1750.svg 'Hex version')](https://hex.pm/packages/bh1750)\n[![API docs](https://img.shields.io/hexpm/v/bh1750.svg?label=docs 'API docs')](https://hexdocs.pm/bh1750)\n[![CI](https://github.com/mnishiguchi/bh1750/actions/workflows/ci.yml/badge.svg)](https://github.com/mnishiguchi/bh1750/actions/workflows/ci.yml)\n\n\u003c!-- README START --\u003e\n\nUse BH1750 16-bit ambient light sensor in Elixir.\n\n\u003c!-- README END --\u003e\n\n## Installation\n\nAdd `bh1750` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:bh1750, \"~\u003e 0.2\"}\n  ]\nend\n```\n\n## Usage\n### I2C address\n\nI2C address can be either `0x23` (default) or `0x5C`.\n\n### Start a sensor server\n\n```elixir\n{:ok, sensor} = BH1750.start_link\n```\n\n### Measure the ambient light\n\n```elixir\n{:ok, lux} = BH1750.measure(sensor)\n```\n\nFor more information, see [API reference](https://hexdocs.pm/bh1750/api-reference.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnishiguchi%2Fbh1750","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnishiguchi%2Fbh1750","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnishiguchi%2Fbh1750/lists"}