{"id":21534620,"url":"https://github.com/danesparza/embd","last_synced_at":"2026-05-20T06:05:34.330Z","repository":{"id":151777251,"uuid":"87600056","full_name":"danesparza/embd","owner":"danesparza","description":"Repository for embd based sensors","archived":false,"fork":false,"pushed_at":"2017-04-26T16:18:56.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T07:11:36.033Z","etag":null,"topics":["beaglebone-black","electronics","embd","embedded-systems","golang","humidity","humidity-sensor","i2c","i2c-sensors","raspberry-pi","sensor","temperature","temperature-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/danesparza.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":"2017-04-08T01:48:46.000Z","updated_at":"2020-06-07T09:57:57.000Z","dependencies_parsed_at":"2023-07-31T09:00:30.418Z","dependency_job_id":null,"html_url":"https://github.com/danesparza/embd","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/danesparza%2Fembd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danesparza%2Fembd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danesparza%2Fembd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danesparza%2Fembd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danesparza","download_url":"https://codeload.github.com/danesparza/embd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244102855,"owners_count":20398386,"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":["beaglebone-black","electronics","embd","embedded-systems","golang","humidity","humidity-sensor","i2c","i2c-sensors","raspberry-pi","sensor","temperature","temperature-sensor"],"created_at":"2024-11-24T03:12:06.827Z","updated_at":"2026-05-20T06:05:34.275Z","avatar_url":"https://github.com/danesparza.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# embd [![CircleCI](https://circleci.com/gh/danesparza/embd.svg?style=svg)](https://circleci.com/gh/danesparza/embd)\nRepository for [embd](https://github.com/kidoman/embd) based sensors\n\n## Sensors included\n* [Texas instruments HDC1008](https://learn.adafruit.com/adafruit-hdc1008-temperature-and-humidity-sensor-breakout/overview) - Temperature and Humidity sensor.  \n* [Pimoroni Enviro-phat](http://docs.pimoroni.com/envirophat/) - Sensor package for Raspberry pi.  Support for the lsm303d accelerometer.\n\n## Examples\n### HDC100x\nDon't forget to include the following import statements:\n\n```Go\nimport (\n  \"github.com/danesparza/embd/sensor/hdc100x\" // The sensor\n  \"github.com/kidoman/embd\"\n  _ \"github.com/kidoman/embd/host/rpi\" // This loads the RPi driver\n)\n```\n\nExample code:\n```Go\n// Init I2C\nif err := embd.InitI2C(); err != nil {\n\t\tpanic(err)\n}\ndefer embd.CloseI2C()\n\n// Init the I2C bus and create a sensor object\nbus := embd.NewI2CBus(1)\nsensor := hdc100x.New(bus)\n\n//\tGet temperature from the sensor\nfTemp, err := sensor.Temperature()\nif err != nil {\n  log.Fatal(err)\n}\nlog.Printf(\"Temp from embd: %.2f°\", fTemp)\n\n//\tGet humidity from the sensor\nhumidity, err := sensor.Humidity()\nif err != nil {\n  log.Fatal(err)\n}\nlog.Printf(\"Humidity from embd: %.1f%%\", humidity)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanesparza%2Fembd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanesparza%2Fembd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanesparza%2Fembd/lists"}