{"action":"created","issue":{"url":"https://api.github.com/repos/fra589/grbl-Mega-5X/issues/2","repository_url":"https://api.github.com/repos/fra589/grbl-Mega-5X","labels_url":"https://api.github.com/repos/fra589/grbl-Mega-5X/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fra589/grbl-Mega-5X/issues/2/comments","events_url":"https://api.github.com/repos/fra589/grbl-Mega-5X/issues/2/events","html_url":"https://github.com/fra589/grbl-Mega-5X/issues/2","id":319845813,"node_id":"MDU6SXNzdWUzMTk4NDU4MTM=","number":2,"title":"Change Motors Place ","user":{"login":"luisluna2","id":38824145,"node_id":"MDQ6VXNlcjM4ODI0MTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/38824145?v=4","gravatar_id":"","url":"https://api.github.com/users/luisluna2","html_url":"https://github.com/luisluna2","followers_url":"https://api.github.com/users/luisluna2/followers","following_url":"https://api.github.com/users/luisluna2/following{/other_user}","gists_url":"https://api.github.com/users/luisluna2/gists{/gist_id}","starred_url":"https://api.github.com/users/luisluna2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisluna2/subscriptions","organizations_url":"https://api.github.com/users/luisluna2/orgs","repos_url":"https://api.github.com/users/luisluna2/repos","events_url":"https://api.github.com/users/luisluna2/events{/privacy}","received_events_url":"https://api.github.com/users/luisluna2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-03T09:24:42Z","updated_at":"2018-08-27T17:33:57Z","closed_at":"2018-06-04T05:13:48Z","author_association":"NONE","body":"Hello friend, one question: How can SWAP the ZAXIS motor to YAXIS motor?\r\n\r\nI try change pins in \"cpu_map.h\" but when I change the pins it does not work, Not move Z and Y, in this case I use 2Y motors and 1Z motor, maybe could be best SWAP the Motors PINS.\r\n\r\nCould tell me how?\r\n\r\nThank you for your coments!"},"comment":{"url":"https://api.github.com/repos/fra589/grbl-Mega-5X/issues/comments/416304557","html_url":"https://github.com/fra589/grbl-Mega-5X/issues/2#issuecomment-416304557","issue_url":"https://api.github.com/repos/fra589/grbl-Mega-5X/issues/2","id":416304557,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjMwNDU1Nw==","user":{"login":"fra589","id":19529154,"node_id":"MDQ6VXNlcjE5NTI5MTU0","avatar_url":"https://avatars0.githubusercontent.com/u/19529154?v=4","gravatar_id":"","url":"https://api.github.com/users/fra589","html_url":"https://github.com/fra589","followers_url":"https://api.github.com/users/fra589/followers","following_url":"https://api.github.com/users/fra589/following{/other_user}","gists_url":"https://api.github.com/users/fra589/gists{/gist_id}","starred_url":"https://api.github.com/users/fra589/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fra589/subscriptions","organizations_url":"https://api.github.com/users/fra589/orgs","repos_url":"https://api.github.com/users/fra589/repos","events_url":"https://api.github.com/users/fra589/events{/privacy}","received_events_url":"https://api.github.com/users/fra589/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T17:33:57Z","updated_at":"2018-08-27T17:33:57Z","author_association":"OWNER","body":"Hi @luisluna2,\r\n\r\nyou need to modify both #define STEP_BIT_1 and STEP_PORT_1 in cpu_map.h...  \r\n\r\nFirst, search for \"mega 2560 pinout\" on google images. Then you will found this type of picture :  \r\nhttps://www.14core.com/wp-content/uploads/2015/06/ATMEGA-2560-Pin-Out-Diagram.png  \r\nor this :  \r\nhttps://www.bitsandparts.eu/documentation/299/ARDUINO.Mega.Pinout.Diagram.png\r\n\r\nBy default, the third axis (AXIS_2) is on D46\r\nIn thoses pictures, you can see that the pin D46 is on port PL3 of Arduino board. So, the port definition in cpumap.h is :  \r\n`#define STEP_PORT_2 L`  \r\n`#define STEP_BIT_2 3  // Z Step - Pin D46`  \r\n  \r\nif you want to change to D51 (for example), you will find on the picture that is it on Arduino's port PB2. So, change the definition to :    \r\n`#define STEP_PORT_2 B`  \r\n`#define STEP_BIT_2 2  // Z Step - Pin D51`  \r\n  \r\nThat's all :)\r\n@++;\r\nGauthier."}}
{"actor":{"display_login":"fra589"}}