{"id":15375007,"url":"https://github.com/novi/i2c-swift-example","last_synced_at":"2025-07-26T20:02:23.146Z","repository":{"id":139037556,"uuid":"76431460","full_name":"novi/i2c-swift-example","owner":"novi","description":"Use I2C bus device with Swift","archived":false,"fork":false,"pushed_at":"2017-03-01T12:28:36.000Z","size":1366,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T15:13:11.971Z","etag":null,"topics":["i2c","linux","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/novi.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":"2016-12-14T06:27:48.000Z","updated_at":"2021-07-04T17:08:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9dbb994-8898-4d17-8f5b-30230d29c2ff","html_url":"https://github.com/novi/i2c-swift-example","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/novi%2Fi2c-swift-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fi2c-swift-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fi2c-swift-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fi2c-swift-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/novi","download_url":"https://codeload.github.com/novi/i2c-swift-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094933,"owners_count":21211837,"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":["i2c","linux","swift"],"created_at":"2024-10-01T14:00:34.387Z","updated_at":"2025-04-15T15:13:17.105Z","avatar_url":"https://github.com/novi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# i2c-swift-example\n\nThis repository demonstrates how to control I2C devie with Swift. The library page is [here](https://github.com/novi/i2c-swift).\n\n* `Sources/I2CDetect`: Detect I2C Device on the bus\n* `Sources/I2CDeviceModule`: Some I2C module driver library, LED and sensors...\n* `Sources/Counter`: Counter demo for LED 8Seg module (ZT.SEG8B4A036A)\n* `Sources/LightSens`: Ambient Light Sensor demo (BH1750)\n* `Sources/LightSensDisplay`: Combine with LED and light sensor the above\n* `Sources/AirPressureSens`: Air Pressure Sensor demo (BMP180)\n* `Sources/AirPressureSensDisplay`: Combine with LED and air pressure sensor\n* `Sources/HumiditySens`: Humidity Sensor demo (SHT21)\n\n## Supported Platform\n\n* [I2CTinyUSB](https://github.com/novi/i2c_tiny_usb) adapter (Mac)\n* I2C Kernel device (/dev/i2c-*) (Linux, Raspberry Pi etc...)\n\n## Building\n\nInstall libusb package.\n\n### macOS\n\n```\n$ brew install libusb-compat libusb\n```\n\n### Linux(Ubuntu 16.04)\n\n\n```\n$ sudo apt-get install i2c-tools libi2c-dev\n```\n\nBuild library and its demo.\n\n```\nmake debug\n```\n\nOn Linux, you should probably run the demo with `sudo`.\n\n```\nsudo .build/debug/I2CDetect\n```\n\n![](https://github.com/novi/i2c-swift-example/raw/master/demo.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovi%2Fi2c-swift-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovi%2Fi2c-swift-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovi%2Fi2c-swift-example/lists"}