{"id":19540912,"url":"https://github.com/mathieu52/motor","last_synced_at":"2025-07-20T01:07:15.032Z","repository":{"id":185072126,"uuid":"481357572","full_name":"Mathieu52/Motor","owner":"Mathieu52","description":"An arduino library for motor control","archived":false,"fork":false,"pushed_at":"2022-09-13T23:17:30.000Z","size":230,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T05:17:38.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/Mathieu52.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}},"created_at":"2022-04-13T20:00:39.000Z","updated_at":"2022-04-13T20:57:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e9c5206-fbeb-4325-ad71-0b6dd44d1a98","html_url":"https://github.com/Mathieu52/Motor","commit_stats":null,"previous_names":["mathieu52/motor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mathieu52/Motor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu52%2FMotor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu52%2FMotor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu52%2FMotor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu52%2FMotor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mathieu52","download_url":"https://codeload.github.com/Mathieu52/Motor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu52%2FMotor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266052545,"owners_count":23869476,"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-11-11T03:07:53.684Z","updated_at":"2025-07-20T01:07:15.010Z","avatar_url":"https://github.com/Mathieu52.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summary\n\n Members                        | Descriptions                                \n--------------------------------|---------------------------------------------\n`class `[`Motor`](#class_motor) | Control motors\n\n# class `Motor` \n\nControl motors\n\n## Summary\n\n Members                        | Descriptions                                \n--------------------------------|---------------------------------------------\n`public unsigned int `[`speed`](#class_motor_1a3f35039a81dcd562a8457b6329ff7b3d)`() const` | The speed of the motor (0 - 255)\n`public bool `[`direction`](#class_motor_1ac37a8742ac9834419fe372cac5d51bb6)`() const` | The direction of the motor (true : Forward, false : Backward)\n`public  `[`Motor`](#class_motor_1a4c872c4ed2601b075affa6b113fee267)`(const unsigned int forwardPin,const unsigned int backwardPin,const unsigned throttlePin)` | Contructor of [Motor](#class_motor). \n`public void `[`control`](#class_motor_1a2efba88aedaeaab3280432b8bbe8d874)`(int throttle)` | Throttle the [Motor](#class_motor) using integer value between -255 and 255. \n`public void `[`reverse`](#class_motor_1a1e1cfdd2808f7cb6a3816b8089e135db)`()` | Reverse the [Motor](#class_motor) direction.\n`public void `[`stop`](#class_motor_1a015fd5308d4d27e5dcf7f9ea3d5c03f6)`()` | Stops the [Motor](#class_motor).\n`public void `[`setDirection`](#class_motor_1a20f404b9f19e3bd9b24f65cfa093da8c)`(boolean direction)` | Change the [Motor](#class_motor) direction. \n`public void `[`setSpeed`](#class_motor_1a52629377895ffd22fdd60f648cb86f1a)`(unsigned int speed)` | Change the [Motor](#class_motor) speed. \n\n## Members\n\n#### `public unsigned int `[`speed`](#class_motor_1a3f35039a81dcd562a8457b6329ff7b3d)`() const` \n\nThe speed of the motor (0 - 255)\n\n#### `public bool `[`direction`](#class_motor_1ac37a8742ac9834419fe372cac5d51bb6)`() const` \n\nThe direction of the motor (true : Forward, false : Backward)\n\n#### `public  `[`Motor`](#class_motor_1a4c872c4ed2601b075affa6b113fee267)`(const unsigned int forwardPin,const unsigned int backwardPin,const unsigned throttlePin)` \n\nContructor of [Motor](#class_motor). \n#### Parameters\n* `forwardPin` : forward pin of the motor (forward direction control) \n\n* `backwardPin` : backward pin of the motor (backward direction control) \n\n* `throttlePin` : throttle pin of the motor (throttle control)\n\n#### `public void `[`control`](#class_motor_1a2efba88aedaeaab3280432b8bbe8d874)`(int throttle)` \n\nThrottle the [Motor](#class_motor) using integer value between -255 and 255. \n#### Parameters\n* `throttle` : Integer between -255 and 255 (-255 : 100% backward, 255 : 100% forward).\n\n#### `public void `[`reverse`](#class_motor_1a1e1cfdd2808f7cb6a3816b8089e135db)`()` \n\nReverse the [Motor](#class_motor) direction.\n\n#### `public void `[`stop`](#class_motor_1a015fd5308d4d27e5dcf7f9ea3d5c03f6)`()` \n\nStops the [Motor](#class_motor).\n\n#### `public void `[`setDirection`](#class_motor_1a20f404b9f19e3bd9b24f65cfa093da8c)`(boolean direction)` \n\nChange the [Motor](#class_motor) direction. \n#### Parameters\n* `direction` : Boolean representing the new direction (true : Forward, false : Backward)\n\n#### `public void `[`setSpeed`](#class_motor_1a52629377895ffd22fdd60f648cb86f1a)`(unsigned int speed)` \n\nChange the [Motor](#class_motor) speed. \n#### Parameters\n* `speed` : Integer between 0 and 255 (-255 : Slowest, 255 : Fastest).\n\nGenerated by [Moxygen](https://sourcey.com/moxygen)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu52%2Fmotor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieu52%2Fmotor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu52%2Fmotor/lists"}