{"id":27203162,"url":"https://github.com/pimoroni/pantilthat-python","last_synced_at":"2025-04-09T22:10:29.206Z","repository":{"id":40523218,"uuid":"71924929","full_name":"pimoroni/pantilthat-python","owner":"pimoroni","description":"Python library for the Pimoroni PanTilt servo and lighting HAT","archived":false,"fork":false,"pushed_at":"2025-03-17T15:29:46.000Z","size":176,"stargazers_count":115,"open_issues_count":4,"forks_count":40,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-04-02T21:07:54.516Z","etag":null,"topics":["hat","pypi-package","python","raspberry-pi","raspberry-pi-library","servo-driver"],"latest_commit_sha":null,"homepage":"https://shop.pimoroni.com/products/pan-tilt-hat","language":"Python","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/pimoroni.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-10-25T18:05:17.000Z","updated_at":"2025-03-17T15:14:14.000Z","dependencies_parsed_at":"2025-03-17T22:31:14.340Z","dependency_job_id":null,"html_url":"https://github.com/pimoroni/pantilthat-python","commit_stats":null,"previous_names":["pimoroni/pantilthat-python"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fpantilthat-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fpantilthat-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fpantilthat-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fpantilthat-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pimoroni","download_url":"https://codeload.github.com/pimoroni/pantilthat-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247654963,"owners_count":20974100,"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":["hat","pypi-package","python","raspberry-pi","raspberry-pi-library","servo-driver"],"created_at":"2025-04-09T22:10:28.612Z","updated_at":"2025-04-09T22:10:29.195Z","avatar_url":"https://github.com/pimoroni.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pan-Tilt HAT\nhttps://shop.pimoroni.com/products/pan-tilt-hat\n\nPan-Tilt HAT is a two-channel servo driver designed to control a tiny servo-powered Pan/Tilt assembly. It also controls either PWM-dimmed lights or WS2812 pixels; up to 24 RGB or 18 RGBW.\n\n## Installing\n\n### Full install (recommended):\n\nWe've created an easy installation script that will install all pre-requisites and get your Pan-Tilt HAT\nup and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -\u003e Accessories -\u003e Terminal\non your Raspberry Pi desktop, as illustrated below:\n\n![Finding the terminal](http://get.pimoroni.com/resources/github-repo-terminal.png)\n\nIn the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:\n\n```bash\ncurl https://get.pimoroni.com/pantilthat | bash\n```\n\n### Manual install:\n\nEnable i2c:\n\n```bash\nsudo raspi-config nonint do_i2c 0\n```\n\nInstall the library:\n\n```bash\npython3 -m pip install pantilthat\n```\n\nℹ️ Depending on your system, you might need to use `sudo` for the above command.\n\n### Development:\n\nIf you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, `cd` to the library directory, and run:\n\n```bash\nsudo python3 setup.py install\n```\n(or `sudo python setup.py install` whichever your primary Python environment may be)\n\nIn all cases you will have to enable the i2c bus.\n\n## Breakout Header Pinout\n\nThe breakout header on Pan Tilt HAT is connected directly to the GPIO pins.\n\nBelow is a map of the breakout functions and corresponding BCM pins:\n\n| SDA | SCL | TX | RX | PWM | MOSI | MISO | SCLK | CEO |\n| --- | --- | -- | -- | --- | ---- | ---- | ---- | --- |\n| 2   | 3   | 14 | 15 | 18  | 10   | 9    | 11   | 8   |\n\n## Documentation \u0026 Support\n\n* Guides and tutorials - https://learn.pimoroni.com/pan-tilt-hat\n* Function reference - http://docs.pimoroni.com/pantilthat/\n* GPIO Pinout - https://pinout.xyz/pinout/pan_tilt_hat\n* Get help - http://forums.pimoroni.com/c/support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimoroni%2Fpantilthat-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimoroni%2Fpantilthat-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimoroni%2Fpantilthat-python/lists"}