{"id":24187742,"url":"https://github.com/alex-stone-github/pepstep","last_synced_at":"2026-04-15T07:33:10.156Z","repository":{"id":271787258,"uuid":"913369687","full_name":"Alex-Stone-Github/pepstep","owner":"Alex-Stone-Github","description":"Arduino Library for concurrent stepper control","archived":false,"fork":false,"pushed_at":"2025-01-09T21:08:24.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T22:22:08.627Z","etag":null,"topics":["arduino","arduino-ide","arduino-library","scheduler","scheduling-algorithms","stepper-library","stepper-motor","steppers"],"latest_commit_sha":null,"homepage":"https://github.com/Alex-Stone-Github/pepstep","language":"C++","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/Alex-Stone-Github.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":"2025-01-07T14:55:20.000Z","updated_at":"2025-01-09T21:08:27.000Z","dependencies_parsed_at":"2025-01-09T22:22:11.898Z","dependency_job_id":"08e8d749-bb8b-4356-919c-6e66bd760a6c","html_url":"https://github.com/Alex-Stone-Github/pepstep","commit_stats":null,"previous_names":["alex-stone-github/pepstep"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-Stone-Github%2Fpepstep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-Stone-Github%2Fpepstep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-Stone-Github%2Fpepstep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-Stone-Github%2Fpepstep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alex-Stone-Github","download_url":"https://codeload.github.com/Alex-Stone-Github/pepstep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241597336,"owners_count":19988228,"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":["arduino","arduino-ide","arduino-library","scheduler","scheduling-algorithms","stepper-library","stepper-motor","steppers"],"created_at":"2025-01-13T13:35:51.970Z","updated_at":"2025-10-18T12:23:19.045Z","avatar_url":"https://github.com/Alex-Stone-Github.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pepstep\n_For stepper motors with pep to their step_\n\n![Library Cover Image](docs/cover.png)\n\n## Functionality\n\nThis library allows the control of multiple stepper motors concurrently through \"ScheduleEntrys.\"\n\n\n# Compatability\nIt supports stepper motors from the \u003cCNCShield.h\u003e Arduino library. The CNCShield wrapper API, \"CNCShieldMotor,\" looks like this:\n```cpp\n  auto get(double steps_per_unit) -\u003e double;\n  auto set(ScheduleEntry\u0026 scheduler, double speed) -\u003e void;\n  auto stop(ScheduleEntry\u0026 scheduler) -\u003e void;\n  auto reset() -\u003e void;\n```\n\n\n# Examples with \u003cCNCShield.h\u003e\n## Simple Example \n```cpp\n#include \u003cpepstep.h\u003e\n#include \u003cCNCShield.h\u003e\n\nCNCShield arduino_shield;\npep::CNCShieldMotor rotation(arduino_shield.get_motor(0));\npep::CNCShieldMotor linear(arduino_shield.get_motor(1));\n\nvoid printhi(void*) {\n  Serial.println(\"Hello, World\");\n  Serial.println(linear.get(1.0));\n}\n\n\npep::ScheduleEntry schedule[] = {\n  CNCSMEntry(rotation),\n  CNCSMEntry(linear),\n  pep::ScheduleEntry(1000,(void(*)(void*))(\u0026printhi),NULL),\n};\n\n\nvoid setup() {\n  Serial.begin(9600);\n  while (!Serial);\n  arduino_shield.begin();\n  arduino_shield.enable();\n  \n  rotation.set(schedule[0], 0.1);\n  linear.set(schedule[1],0.2);\n}\nvoid loop() {\n  POLL(schedule);\n}\n```\n\n## Scheduling Example\n```cpp\n#include \u003cpepstep.h\u003e\n#include \u003cCNCShield.h\u003e\n\nCNCShield arduino_shield;\npep::CNCShieldMotor rotation(arduino_shield.get_motor(0));\npep::CNCShieldMotor linear(arduino_shield.get_motor(1));\n\nvoid printhi(void*) {\n  Serial.println(\"Hello, World\");\n  rotation.reset(); // Reset Internal Step Counter, \"Encoder\"\n}\n\npep::ScheduleEntry schedule[] = {\n  pep::ScheduleEntry(10000, (void(*)(void*))(\u0026pep::CNCShieldMotor::step), (void*)\u0026rotation),\n  pep::ScheduleEntry(10000, (void(*)(void*))(\u0026pep::CNCShieldMotor::step), (void*)\u0026linear  ),\n  pep::ScheduleEntry(1000,  (void(*)(void*))(\u0026printhi),                   NULL            ),\n};\nvoid setup() {\n  Serial.begin(9600);\n  while (!Serial);\n  arduino_shield.begin();\n  arduino_shield.enable();\n  \n  rotation.set(schedule[0], 0.1);\n  linear.set(schedule[1],0.2);\n}\nvoid loop() {\n    for (auto\u0026 entry : schedule)\n      entry.poll(millis());\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-stone-github%2Fpepstep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-stone-github%2Fpepstep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-stone-github%2Fpepstep/lists"}