{"id":13489239,"url":"https://github.com/Sephiroth87/scroll-phat-swift","last_synced_at":"2025-03-28T04:30:59.466Z","repository":{"id":147188859,"uuid":"49610893","full_name":"Sephiroth87/scroll-phat-swift","owner":"Sephiroth87","description":"Swift library to control the Pimoroni Scroll pHAT for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2016-08-09T19:13:30.000Z","size":1558,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T13:21:44.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sephiroth87.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}},"created_at":"2016-01-14T00:15:43.000Z","updated_at":"2021-12-11T13:40:51.000Z","dependencies_parsed_at":"2024-01-18T22:39:51.029Z","dependency_job_id":"35c69fb8-3e71-4a3d-944b-2cad64cf58d5","html_url":"https://github.com/Sephiroth87/scroll-phat-swift","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/Sephiroth87%2Fscroll-phat-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sephiroth87%2Fscroll-phat-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sephiroth87%2Fscroll-phat-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sephiroth87%2Fscroll-phat-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sephiroth87","download_url":"https://codeload.github.com/Sephiroth87/scroll-phat-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245970380,"owners_count":20702397,"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":[],"created_at":"2024-07-31T19:00:20.829Z","updated_at":"2025-03-28T04:30:58.935Z","avatar_url":"https://github.com/Sephiroth87.png","language":"Swift","funding_links":[],"categories":["Libs"],"sub_categories":["Embedded Systems"],"readme":"#scroll-phat-swift\n\u003ca href=\"https://gitter.im/Sephiroth87/scroll-phat-swift?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"\u003e\u003cimg src=\"https://badges.gitter.im/Join%20Chat.svg\" alt=\"Join the chat at https://gitter.im/Sephiroth87/scroll-phat-swift\" /\u003e\u003c/a\u003e\n\nscroll-phat-swift is a Linux library to control [Pimoroni Scroll pHAT](https://shop.pimoroni.com/collections/raspberry-pi-zero/products/scroll-phat) for Raspberry Pi.\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/Sephiroth87/scroll-phat-swift/master/snake.gif\" alt=\"Snake\" /\u003e\n\u003c/p\u003e\n\n##Installation\nPackage Manager is not functional on Raspberry Pi yet, so you'll have to do it manually for now.\nAfter cloning, compile your program adding the 2 system dependencies, the SMBus file and the scroll-phat one, like:\n```\nswiftc -o MyProgram -I ./SMBus/Packages/Ci2c -I ./SMBus/Packages/CioctlHelper ./SMBus/Sources/SMBus.swift ./Sources/ScrollpHAT.swift main.swift\n```\nYou can look in the Examples folder for see how to build your program.\n\n##Usage\nNo need to import anything since the library is built together with your other sources.\nCreate a ScrollpHAT object:\n```\nlet pHAT = try ScrollpHAT()\n```\nto turn on/off an led use :\n```\npHAT.setPixel(x: 0, y: 0, value: true)\ntry pHAT.update()\n```\nwrite a string:\n```\ntry pHAT.writeString(\"SWIFT\")\n```\nscrolling:\n```\ntry pHAT.scroll()\ntry pHAT.scrollTo(0)\n```\n##TODO\n- [x] Add missing functions (text, scrolling)\n- [ ] Add documentation\n- [ ] Support Package Manager\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSephiroth87%2Fscroll-phat-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSephiroth87%2Fscroll-phat-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSephiroth87%2Fscroll-phat-swift/lists"}