{"id":18689270,"url":"https://github.com/endail/bh1750","last_synced_at":"2025-11-08T05:30:37.452Z","repository":{"id":104384211,"uuid":"359832584","full_name":"endail/BH1750","owner":"endail","description":"BH1750 light sensor API for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2021-10-31T12:51:58.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T01:40:10.915Z","etag":null,"topics":["bh1750","cpp","lgpio","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"C++","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/endail.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":"2021-04-20T13:49:21.000Z","updated_at":"2024-04-23T13:01:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"81beb347-11f2-4e75-adb8-77c58f869488","html_url":"https://github.com/endail/BH1750","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/endail%2FBH1750","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endail%2FBH1750/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endail%2FBH1750/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endail%2FBH1750/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endail","download_url":"https://codeload.github.com/endail/BH1750/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239549990,"owners_count":19657538,"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":["bh1750","cpp","lgpio","raspberry-pi"],"created_at":"2024-11-07T10:41:56.431Z","updated_at":"2025-11-08T05:30:37.414Z","avatar_url":"https://github.com/endail.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BH1750\n\n[![Build on Raspberry Pi](https://github.com/endail/BH1750/actions/workflows/buildcheck.yml/badge.svg)](https://github.com/endail/BH1750/actions/workflows/buildcheck.yml) [![cppcheck](https://github.com/endail/BH1750/actions/workflows/cppcheck.yml/badge.svg)](https://github.com/endail/BH1750/actions/workflows/cppcheck.yml)\n\n- Use with Raspberry Pi\n- Requires [lgpio](http://abyz.me.uk/lg/index.html)\n- Code tested inside [virtual Raspberry Pi Zero/3/4 environments](.github/workflows/buildcheck.yml) on GitHub\n\n## Example\n\n```cpp\n#include \"BH1750.h\"\n#include \u003ciostream\u003e\n\nint main() {\n  \n  BH1750::BH1750 sensor;\n  sensor.connect();\n  \n  std::cout \u003c\u003c sensor.lux() \u003c\u003c std::endl;\n  \n  return 0;\n\n}\n```\n\n## Use\n\nAfter writing your own code (eg. main.cpp), compile and link with the lgpio library as follows:\n\n```console\npi@raspberrypi:~ $ g++ -Wall -o prog main.cpp -llgpio\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendail%2Fbh1750","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendail%2Fbh1750","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendail%2Fbh1750/lists"}