{"id":15561271,"url":"https://github.com/arti3dplayer/usbdeviceswift","last_synced_at":"2025-04-05T22:08:36.643Z","repository":{"id":47701433,"uuid":"94090255","full_name":"Arti3DPlayer/USBDeviceSwift","owner":"Arti3DPlayer","description":"wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices","archived":false,"fork":false,"pushed_at":"2023-12-19T14:09:42.000Z","size":258,"stargazers_count":286,"open_issues_count":9,"forks_count":54,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-29T21:44:11.711Z","etag":null,"topics":["cocoa","iohid","iokit","macos","osx","serial-ports","swift","usb","usb-devices"],"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/Arti3DPlayer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"Supporting Files/Defaults.xcconfig","governance":null,"roadmap":null,"authors":null}},"created_at":"2017-06-12T11:48:42.000Z","updated_at":"2024-04-28T18:04:15.000Z","dependencies_parsed_at":"2023-11-27T13:08:23.644Z","dependency_job_id":"17e74412-936d-45e4-a7dc-a9a039a0cbfe","html_url":"https://github.com/Arti3DPlayer/USBDeviceSwift","commit_stats":{"total_commits":30,"total_committers":8,"mean_commits":3.75,"dds":"0.30000000000000004","last_synced_commit":"b26a0b4b3f9230ac767eee248e31706f7949a143"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arti3DPlayer%2FUSBDeviceSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arti3DPlayer%2FUSBDeviceSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arti3DPlayer%2FUSBDeviceSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arti3DPlayer%2FUSBDeviceSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arti3DPlayer","download_url":"https://codeload.github.com/Arti3DPlayer/USBDeviceSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406091,"owners_count":20933803,"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":["cocoa","iohid","iokit","macos","osx","serial-ports","swift","usb","usb-devices"],"created_at":"2024-10-02T16:06:55.173Z","updated_at":"2025-04-05T22:08:36.621Z","avatar_url":"https://github.com/Arti3DPlayer.png","language":"Swift","readme":"# USBDeviceSwift\n\n**USBDeviceSwift** - is a wrapper for `IOKit.usb` and `IOKit.hid` and `IOKit.serial` written on pure Swift that allows you convenient work with USB devices.\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003e\n            \u003cimg src=\"STM32DeviceExample/Media/stm32example.gif\"/\u003e\n        \u003c/th\u003e\n        \u003cth\u003e\n            \u003cimg src=\"RaceflightControllerHIDExample/Media/rfHIDExample.gif\"/\u003e\n        \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n         \u003cth\u003e\n         \u003cimg src=\"CleanFlightSerialExample/Media/serialCFExample.gif\"/\u003e\n         \u003c/th\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\nWorking with `IOKit.usb` and `IOKit.hid` and `IOKit.serial` on Swift is a pain. A lot of not converted C code, pointers make your life harder.\nThis library provides basic connect/disconnect events, converted functions to send and receive requests and examples.\n\n## Getting Started\n\n### Requirements\n\n* Mac OS X 10.10\n* Xcode 8+\n* Swift 4\n\n## Installation\n\n#### CocoaPods\n\n[CocoaPods](https://cocoapods.org/) is a dependency manager for Cocoa projects.\n\nSpecify USBDeviceSwift into your project's `Podfile`:\n\n```ruby\n# Uncomment the next line to define a global platform for your project\n# platform :ios, '9.0'\n\ntarget 'testusb' do\n# Comment the next line if you're not using Swift and don't want to use dynamic frameworks\nuse_frameworks!\n\n# Pods for testusb\n\npod 'USBDeviceSwift'\n\nend\n```\n\nThen run the following command:\n\n```bash\n$ pod install\n```\n\n#### Swift Package Manager\n\n[Swift Package Manager](https://swift.org/package-manager/)\n\n```\nimport PackageDescription\n\nlet package = Package(\n    name: \"Example project\",\n    dependencies: [\n        .Package(url: \"https://github.com/Arti3DPlayer/USBDeviceSwift.git\", majorVersion: 1),\n    ]\n)\n```\n\n## Examples\n\nYou will find all examples on Wiki page [here](https://github.com/Arti3DPlayer/USBDeviceSwift/wiki)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details\n\n## Change Log\n\nThis can be found in the [CHANGELOG.md](CHANGELOG.md) file.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farti3dplayer%2Fusbdeviceswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farti3dplayer%2Fusbdeviceswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farti3dplayer%2Fusbdeviceswift/lists"}