{"id":20563382,"url":"https://github.com/pilotak/shtc3","last_synced_at":"2026-06-06T15:31:33.258Z","repository":{"id":91903487,"uuid":"290534239","full_name":"pilotak/SHTC3","owner":"pilotak","description":"Mbed library for SHTC3 humidity \u0026 temperature sensor","archived":false,"fork":false,"pushed_at":"2020-11-08T13:15:35.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T19:37:22.251Z","etag":null,"topics":["humidity","mbed-os","sensor","shtc3","temperature"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-26T15:27:46.000Z","updated_at":"2020-11-08T13:15:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"6306e215-972c-49fc-bf9b-da0db436d1d5","html_url":"https://github.com/pilotak/SHTC3","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/pilotak%2FSHTC3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FSHTC3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FSHTC3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FSHTC3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/SHTC3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242171669,"owners_count":20083601,"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":["humidity","mbed-os","sensor","shtc3","temperature"],"created_at":"2024-11-16T04:17:59.447Z","updated_at":"2026-06-06T15:31:33.250Z","avatar_url":"https://github.com/pilotak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SHTC3\n[![Framework Badge mbed](https://img.shields.io/badge/framework-mbed-008fbe.svg)](https://os.mbed.com/)\n\nMbed library for SHTC3 humidity \u0026amp; temperature sensor\n\n## Example\n```cpp\n#include \"mbed.h\"\n#include \"SHTC3.h\"\n\nSHTC3 sht(PB_9, PB_8);\n\nint main() {\n    if (!sht.init()) {\n        printf(\"Init failed\\n\");\n        return 0;\n    }\n\n    while (1) {\n        uint16_t raw_temp, raw_humidity;\n\n        if (sht.read(\u0026raw_temp, \u0026raw_humidity)) {\n            printf(\"Temperature: %f*C (%u), humidity: %f%% (%u)\\n\", sht.toCelsius(raw_temp), raw_temp,\n                   sht.toPercentage(raw_humidity), raw_humidity);\n\n        } else {\n            printf(\"Read failed\\n\");\n        }\n\n        ThisThread::sleep_for(2s);\n    }\n}\n\n```\n\u003e If you don't see float numbers in the console output, you need to turn on the support of float for printf\n\u003e ```json\n\u003e {\n\u003e   \"target_overrides\": {\n\u003e     \"*\": {\n\u003e       \"platform.minimal-printf-enable-floating-point\": true,\n\u003e       \"platform.minimal-printf-set-floating-point-max-decimals\": 6\n\u003e     }\n\u003e   }\n\u003e }\n\u003e ```\n\n## Example passing I2C object\n```cpp\n#include \"mbed.h\"\n#include \"SHTC3.h\"\n\nI2C i2c(PB_9, PB_8);\nSHTC3 sht;\n\nint main() {\n    if (!sht.init(\u0026i2c)) {\n        printf(\"Init failed\\n\");\n        return 0;\n    }\n\n    while (1) {\n        uint16_t raw_temp, raw_humidity;\n\n        if (sht.read(\u0026raw_temp, \u0026raw_humidity)) {\n            printf(\"Temperature: %f*C (%u), humidity: %f%% (%u)\\n\", sht.toCelsius(raw_temp), raw_temp,\n                   sht.toPercentage(raw_humidity), raw_humidity);\n\n        } else {\n            printf(\"Read failed\\n\");\n        }\n\n        ThisThread::sleep_for(2s);\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fshtc3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fshtc3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fshtc3/lists"}