{"id":25830894,"url":"https://github.com/lab5e/nrf9160_i2c_example","last_synced_at":"2025-09-10T08:41:01.400Z","repository":{"id":212697011,"uuid":"732099886","full_name":"lab5e/nrf9160_i2c_example","owner":"lab5e","description":"Demonstrating direct I2C access for scanning I2C bus + Chipcap 2 driver example","archived":false,"fork":false,"pushed_at":"2023-12-19T10:53:49.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-28T22:39:00.046Z","etag":null,"topics":["firmware","i2c","lang-zephyr","nordic-connect","nrf91","sample","zephyr"],"latest_commit_sha":null,"homepage":"","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/lab5e.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":"2023-12-15T16:35:43.000Z","updated_at":"2023-12-24T13:35:31.000Z","dependencies_parsed_at":"2025-02-28T19:36:28.820Z","dependency_job_id":null,"html_url":"https://github.com/lab5e/nrf9160_i2c_example","commit_stats":null,"previous_names":["lab5e/nrf9160_i2c_example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lab5e/nrf9160_i2c_example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fnrf9160_i2c_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fnrf9160_i2c_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fnrf9160_i2c_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fnrf9160_i2c_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lab5e","download_url":"https://codeload.github.com/lab5e/nrf9160_i2c_example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Fnrf9160_i2c_example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274433841,"owners_count":25284427,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["firmware","i2c","lang-zephyr","nordic-connect","nrf91","sample","zephyr"],"created_at":"2025-02-28T19:34:35.018Z","updated_at":"2025-09-10T08:41:01.372Z","avatar_url":"https://github.com/lab5e.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nrf9160 Direct Access I2C example code.\n\nThis code demonstrates:\n\n* I2C scanner (more or less ripped ad verbatim from the internet)\n* Low level Chipcap2 I2C communication (from [Air Quality Sensor Node](https://github.com/lab5e/air-quality-sensor-node)\n)\n\n## Note:\n* If you want to use i2c0,1,3, and the driver doesn't load, it is a good idea to check the various I2C nodes in the compiled dts (build/zephyr/zephyr.dts). They will either be marked as \"okay\" or \"disabled\".\n* The code is tested on nRF9160DK using nRF Connect SDK v.2.5.0 (SCL: 31, SDA:30).\n* The example code is using i2c2, since this is enabled by default.\n* [Chipcap2 application guide](https://www.cdiweb.com/datasheets/telaire-amphenol/chipcap2applicationnote.pdf)\n* Don't forget to add pullup resistors between the SDA/SCL and VDD (4.7k-10k).\n\n# Example output\n\n## I2C Scanner\n\n```\n*** Booting nRF Connect SDK v2.5.0 ***\nThe I2C scanner started \nValue of NRF_TWIM2-\u003ePSEL.SCL : -1  \nValue of NRF_TWIM2-\u003ePSEL.SDA : -1 \nValue of NRF_TWIM2-\u003eFREQUENCY: 67108864  \n26738688 -\u003e 100k \nI2C device found at address 0x28\n``` \n\n## Chipcap2\n\n```\n*** Booting nRF Connect SDK v2.5.0 *** \n\nSample : 0\nTemp: 25.8\nRH: 34\n\nSample : 1\nTemp: 25.8\nRH: 34\n\nSample : 2\nTemp: 25.8\nRH: 35\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Fnrf9160_i2c_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flab5e%2Fnrf9160_i2c_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Fnrf9160_i2c_example/lists"}