{"id":20563409,"url":"https://github.com/pilotak/mcp3x21","last_synced_at":"2025-04-14T14:42:52.275Z","repository":{"id":48604049,"uuid":"150005543","full_name":"pilotak/MCP3X21","owner":"pilotak","description":"Arduino library for MCP3021 I2C ADC","archived":false,"fork":false,"pushed_at":"2021-09-29T07:06:13.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T03:41:21.021Z","etag":null,"topics":["mcp3021","mcp3221"],"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/pilotak.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}},"created_at":"2018-09-23T16:55:44.000Z","updated_at":"2024-07-24T12:20:20.000Z","dependencies_parsed_at":"2022-09-05T22:52:15.955Z","dependency_job_id":null,"html_url":"https://github.com/pilotak/MCP3X21","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMCP3X21","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMCP3X21/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMCP3X21/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMCP3X21/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/MCP3X21/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898650,"owners_count":21179813,"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":["mcp3021","mcp3221"],"created_at":"2024-11-16T04:18:35.288Z","updated_at":"2025-04-14T14:42:52.255Z","avatar_url":"https://github.com/pilotak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arduino library for MCP3021 \u0026 MCP3221 I2C ADC\n[![build](https://github.com/pilotak/MCP3X21/workflows/build/badge.svg)](https://github.com/pilotak/MCP3X21/actions) \n[![Framework Badge Arduino](https://img.shields.io/badge/framework-arduino-00979C.svg)](https://arduino.cc)\n\n## Example\n```cpp\n#include \u003cWire.h\u003e\n#include \"MCP3X21.h\"\n\nconst uint8_t address = 0x4D;\nconst uint16_t ref_voltage = 3300;  // in mV\n\nMCP3021 mcp3021(address);\n\nvoid setup() {\n    Serial.begin(115200);\n\n#if defined(ESP8266)\n    Wire.begin(SDA, SCL);\n    mcp3021.init(\u0026Wire);\n#else\n    mcp3021.init();\n#endif\n}\n\nvoid loop() {\n    uint16_t result = mcp3021.read();\n\n    Serial.print(F(\"ADC: \"));\n    Serial.print(result);\n    Serial.print(F(\", mV: \"));\n    Serial.println(mcp3021.toVoltage(result, ref_voltage));\n\n    delay(1000);\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fmcp3x21","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fmcp3x21","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fmcp3x21/lists"}