{"id":19132349,"url":"https://github.com/unidentifieddeveloper/esp-mcp9808","last_synced_at":"2026-04-12T22:12:12.260Z","repository":{"id":82558312,"uuid":"206161891","full_name":"unidentifieddeveloper/esp-mcp9808","owner":"unidentifieddeveloper","description":"MCP9808 driver for ESP32 (ESP-IDF)","archived":false,"fork":false,"pushed_at":"2019-09-03T21:18:38.000Z","size":2,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T11:46:30.923Z","etag":null,"topics":["embedded-systems","esp-idf","esp32","espressif","i2c-driver","mcp9808"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unidentifieddeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-09-03T19:59:10.000Z","updated_at":"2023-06-21T19:36:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5865289-6ea7-416a-b070-4167a56867c1","html_url":"https://github.com/unidentifieddeveloper/esp-mcp9808","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/unidentifieddeveloper%2Fesp-mcp9808","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unidentifieddeveloper%2Fesp-mcp9808/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unidentifieddeveloper%2Fesp-mcp9808/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unidentifieddeveloper%2Fesp-mcp9808/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unidentifieddeveloper","download_url":"https://codeload.github.com/unidentifieddeveloper/esp-mcp9808/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240213795,"owners_count":19766255,"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":["embedded-systems","esp-idf","esp32","espressif","i2c-driver","mcp9808"],"created_at":"2024-11-09T06:17:53.542Z","updated_at":"2025-10-18T10:38:36.464Z","avatar_url":"https://github.com/unidentifieddeveloper.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP9808 driver for ESP32 (ESP-IDF)\r\n\r\nAn MCP9808 digital temperature sensor driver for the Espressif Systems' ESP32.\r\n\r\n## Overview\r\n\r\nThis is a simple driver which builds upon the ESP-IDF I2C driver and adds a few\r\nfunctions to make it easy to read ambient temperature, etc.\r\n\r\n*It does not configure or install the I2C driver - this must be done by the user.*\r\n\r\n## Example usage\r\n\r\nAdd the repository as a submodule (or clone it) into your `components/` directory.\r\n\r\n```sh\r\n$ git submodule add https://github.com/unidentifieddeveloper/esp-mcp9808 components/mcp9808\r\n```\r\n\r\nNext, setup I2C and then init the MCP9808 driver and read ambient temperature.\r\n\r\n```c\r\n#include \"mcp9808.h\"\r\n\r\nvoid app_main()\r\n{\r\n    // TODO: Setup I2C as you see fit\r\n    // - i2c_param_config\r\n    // - i2c_driver_install\r\n\r\n    mcp9808_config_t mcp_config;\r\n    mcp_config.address = 0x18;\r\n    mcp_config.i2c_num = I2C_NUM_1;\r\n\r\n    mcp9808_handle_t mcp;\r\n    uint16_t mcp_manuf_id;\r\n    uint16_t mcp_device_id;\r\n\r\n    if (mcp9808_init(\u0026mcp_config, \u0026mcp, \u0026mcp_manuf_id, \u0026mcp_device_id) != ESP_OK)\r\n    {\r\n        return;\r\n    }\r\n\r\n    float temperature;\r\n\r\n    if (mcp9808_ambient_temp(mcp, \u0026temperature) != ESP_OK)\r\n    {\r\n        return;\r\n    }\r\n\r\n    ESP_LOGI(TAG, \"Temperature: %f\", temperature);\r\n\r\n    mcp9808_delete(mcp);\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funidentifieddeveloper%2Fesp-mcp9808","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funidentifieddeveloper%2Fesp-mcp9808","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funidentifieddeveloper%2Fesp-mcp9808/lists"}