{"id":25026610,"url":"https://github.com/skythecodemaster/vex-python","last_synced_at":"2025-10-07T08:23:48.219Z","repository":{"id":115227733,"uuid":"422005477","full_name":"SkyTheCodeMaster/vex-python","owner":"SkyTheCodeMaster","description":"Various pieces of code that I use in my Vex Robotics projects","archived":false,"fork":false,"pushed_at":"2021-10-28T22:11:22.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T18:06:48.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/SkyTheCodeMaster.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":"2021-10-27T23:42:32.000Z","updated_at":"2021-10-28T22:11:24.000Z","dependencies_parsed_at":"2023-05-25T22:31:42.195Z","dependency_job_id":null,"html_url":"https://github.com/SkyTheCodeMaster/vex-python","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/SkyTheCodeMaster%2Fvex-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyTheCodeMaster%2Fvex-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyTheCodeMaster%2Fvex-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkyTheCodeMaster%2Fvex-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkyTheCodeMaster","download_url":"https://codeload.github.com/SkyTheCodeMaster/vex-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246345653,"owners_count":20762421,"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":"2025-02-05T17:48:44.104Z","updated_at":"2025-10-07T08:23:43.159Z","avatar_url":"https://github.com/SkyTheCodeMaster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vex-python\nVarious pieces of code that I use in my Vex Robotics projects\n\n# Docs\n## [Event Handler](https://github.com/SkyTheCodeMaster/vex-python/blob/master/events.py)\n\nThe event handler abstracts adding functions as callbacks into a simple decorator interface.  \nIn order to use it, you must copy the `EventHandler` class into your code.\nExamples:\n```py\nMyEvents = EventHandler(controller_1)\n\n@MyEvents.on(\"controllerAxis1\")\ndef PrintAxis(pos):\n  print(pos)\n```\n\u003cdetails\u003e\n  \u003csummary\u003eEvent Reference\u003c/summary\u003e\n  \n  | Event Name                      | Argument 1 | Argument 2 |\n|---------------------------------|------------|------------|\n| `controllerAxis1`               | `pos`      |            |\n| `controllerAxis2`               | `pos`      |            |\n| `controllerAxis3`               | `pos`      |            |\n| `controllerAxis4`               | `pos`      |            |\n|                                 |            |            |\n| `controllerButtonAPressed`      |            |            |\n| `controllerButtonBPressed`      |            |            |\n| `controllerButtonXPressed`      |            |            |\n| `controllerButtonYPressed`      |            |            |\n| `controllerButtonUpPressed`     |            |            |\n| `controllerButtonDownPressed`   |            |            |\n| `controllerButtonLeftPressed`   |            |            |\n| `controllerButtonRightPressed`  |            |            |\n| `controllerButtonL1Pressed`     |            |            |\n| `controllerButtonL2Pressed`     |            |            |\n| `controllerButtonR1Pressed`     |            |            |\n| `controllerButtonR2Pressed`     |            |            |\n|                                 |            |            |\n| `controllerButtonAReleased`     |            |            |\n| `controllerButtonBReleased`     |            |            |\n| `controllerButtonXReleased`     |            |            |\n| `controllerButtonYReleased`     |            |            |\n| `controllerButtonUpReleased`    |            |            |\n| `controllerButtonDownReleased`  |            |            |\n| `controllerButtonLeftReleased`  |            |            |\n| `controllerButtonRightReleased` |            |            |\n| `controllerButtonL1Released`    |            |            |\n| `controllerButtonL2Released`    |            |            |\n| `controllerButtonR1Released`    |            |            |\n| `controllerButtonR2Released`    |            |            |\n|                                 |            |            |\n| `screenPressed`                 | `x`        | `y`        |\n| `screenReleased`                | `x`        | `y`        |\n\u003c/details\u003e\n\n## [Loop Decorator](https://github.com/SkyTheCodeMaster/vex-python/blob/master/loop.py)\n\nThis decorator simply loops a function every X milliseconds.  \nUsage:  \n```py  \n@loop(50) # Argument is in milliseconds  \ndef myLoopedFunction():  \n  print(\"loop\")  \n```  \nThe function starts running immediately when called with the decorator, you do not need to do `myLoopedFunction()` later on in your code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskythecodemaster%2Fvex-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskythecodemaster%2Fvex-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskythecodemaster%2Fvex-python/lists"}