{"action":"created","comment":{"url":"https://api.github.com/repos/pdbogen/laseramp/pulls/comments/32540533","id":32540533,"diff_hunk":"@@ -2,28 +2,133 @@\n #define CONST_H\n \n #include <Arduino.h>\n-\n+//#define HOMEONSTART\n+#define BAUDRATE 115200\n+#define EASYCNCCONTROLLER\n+#ifdef EASYCNCCONTROLLER\n+#define EASYCNC_BUSY 4\n+#define EASYCNC_IDLE 0\n+#endif\n+//#define DEBUG_MOVE\n //#define DEBUG_OUTPUT\n+//#define DEBUG_EXECUTE\n //#define DEBUG_QUEUE\n //#define DEBUG_CURVE\n //#define DEBUG_SERIAL\n //#define DEBUG_POWER\n \n-#define STEPS_PER_MM ( 1600l / 15 )\n-#define UM_PER_STEP  ( 15000l / 1600l )\n+// MOTHERBOARDS\n+// 1 = RAMPS14\n+// 2 = GRBL\n+\n+//#define CNCBOARD RAMPS14\n+#define MOTHERBOARD 1","path":"firmware/const.h","position":27,"original_position":27,"commit_id":"a1e00cec2bdcbc2c688d393d26ef5c738bf64eda","original_commit_id":"a1e00cec2bdcbc2c688d393d26ef5c738bf64eda","user":{"login":"pdbogen","id":321591,"avatar_url":"https://avatars.githubusercontent.com/u/321591?v=3","gravatar_id":"","url":"https://api.github.com/users/pdbogen","html_url":"https://github.com/pdbogen","followers_url":"https://api.github.com/users/pdbogen/followers","following_url":"https://api.github.com/users/pdbogen/following{/other_user}","gists_url":"https://api.github.com/users/pdbogen/gists{/gist_id}","starred_url":"https://api.github.com/users/pdbogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdbogen/subscriptions","organizations_url":"https://api.github.com/users/pdbogen/orgs","repos_url":"https://api.github.com/users/pdbogen/repos","events_url":"https://api.github.com/users/pdbogen/events{/privacy}","received_events_url":"https://api.github.com/users/pdbogen/received_events","type":"User","site_admin":false},"body":"#define a constant for RAMPS14 and GRBL so that we can use those instead of the magic numbers of \"1\" and \"2\".","created_at":"2015-06-16T16:39:10Z","updated_at":"2015-06-16T16:39:10Z","html_url":"https://github.com/pdbogen/laseramp/pull/1#discussion_r32540533","pull_request_url":"https://api.github.com/repos/pdbogen/laseramp/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pdbogen/laseramp/pulls/comments/32540533"},"html":{"href":"https://github.com/pdbogen/laseramp/pull/1#discussion_r32540533"},"pull_request":{"href":"https://api.github.com/repos/pdbogen/laseramp/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pdbogen/laseramp/pulls/1","id":37798575,"html_url":"https://github.com/pdbogen/laseramp/pull/1","diff_url":"https://github.com/pdbogen/laseramp/pull/1.diff","patch_url":"https://github.com/pdbogen/laseramp/pull/1.patch","issue_url":"https://api.github.com/repos/pdbogen/laseramp/issues/1","number":1,"state":"open","locked":false,"title":"Major enchacements.","user":{"login":"meirm","id":551713,"avatar_url":"https://avatars.githubusercontent.com/u/551713?v=3","gravatar_id":"","url":"https://api.github.com/users/meirm","html_url":"https://github.com/meirm","followers_url":"https://api.github.com/users/meirm/followers","following_url":"https://api.github.com/users/meirm/following{/other_user}","gists_url":"https://api.github.com/users/meirm/gists{/gist_id}","starred_url":"https://api.github.com/users/meirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meirm/subscriptions","organizations_url":"https://api.github.com/users/meirm/orgs","repos_url":"https://api.github.com/users/meirm/repos","events_url":"https://api.github.com/users/meirm/events{/privacy}","received_events_url":"https://api.github.com/users/meirm/received_events","type":"User","site_admin":false},"body":"* Add option to use Timer1 or Timer3 library which allows you to use GRBL/UNO or RAMPS/MEGA HW.\r\n* Add optional Z axis.\r\n* Use fastio to speed up the code.\r\n* Add more Gcode commands.\r\n* Make all axis 32bit to allow work on big machines.","created_at":"2015-06-16T14:08:21Z","updated_at":"2015-06-16T16:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abdcdf190accabf1bcd253c7d888be8d4534357e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pdbogen/laseramp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pdbogen/laseramp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pdbogen/laseramp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pdbogen/laseramp/issues/1/comments","statuses_url":"https://api.github.com/repos/pdbogen/laseramp/statuses/a1e00cec2bdcbc2c688d393d26ef5c738bf64eda","head":{"label":"meirm:32bit3axis","ref":"32bit3axis","sha":"a1e00cec2bdcbc2c688d393d26ef5c738bf64eda","user":{"login":"meirm","id":551713,"avatar_url":"https://avatars.githubusercontent.com/u/551713?v=3","gravatar_id":"","url":"https://api.github.com/users/meirm","html_url":"https://github.com/meirm","followers_url":"https://api.github.com/users/meirm/followers","following_url":"https://api.github.com/users/meirm/following{/other_user}","gists_url":"https://api.github.com/users/meirm/gists{/gist_id}","starred_url":"https://api.github.com/users/meirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meirm/subscriptions","organizations_url":"https://api.github.com/users/meirm/orgs","repos_url":"https://api.github.com/users/meirm/repos","events_url":"https://api.github.com/users/meirm/events{/privacy}","received_events_url":"https://api.github.com/users/meirm/received_events","type":"User","site_admin":false},"repo":{"id":33509198,"name":"laseramp","full_name":"meirm/laseramp","owner":{"login":"meirm","id":551713,"avatar_url":"https://avatars.githubusercontent.com/u/551713?v=3","gravatar_id":"","url":"https://api.github.com/users/meirm","html_url":"https://github.com/meirm","followers_url":"https://api.github.com/users/meirm/followers","following_url":"https://api.github.com/users/meirm/following{/other_user}","gists_url":"https://api.github.com/users/meirm/gists{/gist_id}","starred_url":"https://api.github.com/users/meirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meirm/subscriptions","organizations_url":"https://api.github.com/users/meirm/orgs","repos_url":"https://api.github.com/users/meirm/repos","events_url":"https://api.github.com/users/meirm/events{/privacy}","received_events_url":"https://api.github.com/users/meirm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meirm/laseramp","description":"GCode-based firmware for cheap Chinese laser engravers","fork":true,"url":"https://api.github.com/repos/meirm/laseramp","forks_url":"https://api.github.com/repos/meirm/laseramp/forks","keys_url":"https://api.github.com/repos/meirm/laseramp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meirm/laseramp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meirm/laseramp/teams","hooks_url":"https://api.github.com/repos/meirm/laseramp/hooks","issue_events_url":"https://api.github.com/repos/meirm/laseramp/issues/events{/number}","events_url":"https://api.github.com/repos/meirm/laseramp/events","assignees_url":"https://api.github.com/repos/meirm/laseramp/assignees{/user}","branches_url":"https://api.github.com/repos/meirm/laseramp/branches{/branch}","tags_url":"https://api.github.com/repos/meirm/laseramp/tags","blobs_url":"https://api.github.com/repos/meirm/laseramp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meirm/laseramp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meirm/laseramp/git/refs{/sha}","trees_url":"https://api.github.com/repos/meirm/laseramp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meirm/laseramp/statuses/{sha}","languages_url":"https://api.github.com/repos/meirm/laseramp/languages","stargazers_url":"https://api.github.com/repos/meirm/laseramp/stargazers","contributors_url":"https://api.github.com/repos/meirm/laseramp/contributors","subscribers_url":"https://api.github.com/repos/meirm/laseramp/subscribers","subscription_url":"https://api.github.com/repos/meirm/laseramp/subscription","commits_url":"https://api.github.com/repos/meirm/laseramp/commits{/sha}","git_commits_url":"https://api.github.com/repos/meirm/laseramp/git/commits{/sha}","comments_url":"https://api.github.com/repos/meirm/laseramp/comments{/number}","issue_comment_url":"https://api.github.com/repos/meirm/laseramp/issues/comments{/number}","contents_url":"https://api.github.com/repos/meirm/laseramp/contents/{+path}","compare_url":"https://api.github.com/repos/meirm/laseramp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meirm/laseramp/merges","archive_url":"https://api.github.com/repos/meirm/laseramp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meirm/laseramp/downloads","issues_url":"https://api.github.com/repos/meirm/laseramp/issues{/number}","pulls_url":"https://api.github.com/repos/meirm/laseramp/pulls{/number}","milestones_url":"https://api.github.com/repos/meirm/laseramp/milestones{/number}","notifications_url":"https://api.github.com/repos/meirm/laseramp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meirm/laseramp/labels{/name}","releases_url":"https://api.github.com/repos/meirm/laseramp/releases{/id}","created_at":"2015-04-06T22:28:50Z","updated_at":"2015-06-16T13:58:59Z","pushed_at":"2015-06-16T14:07:38Z","git_url":"git://github.com/meirm/laseramp.git","ssh_url":"git@github.com:meirm/laseramp.git","clone_url":"https://github.com/meirm/laseramp.git","svn_url":"https://github.com/meirm/laseramp","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pdbogen:master","ref":"master","sha":"f84f6398e2d78e51d9ff36c489f707192cde0a41","user":{"login":"pdbogen","id":321591,"avatar_url":"https://avatars.githubusercontent.com/u/321591?v=3","gravatar_id":"","url":"https://api.github.com/users/pdbogen","html_url":"https://github.com/pdbogen","followers_url":"https://api.github.com/users/pdbogen/followers","following_url":"https://api.github.com/users/pdbogen/following{/other_user}","gists_url":"https://api.github.com/users/pdbogen/gists{/gist_id}","starred_url":"https://api.github.com/users/pdbogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdbogen/subscriptions","organizations_url":"https://api.github.com/users/pdbogen/orgs","repos_url":"https://api.github.com/users/pdbogen/repos","events_url":"https://api.github.com/users/pdbogen/events{/privacy}","received_events_url":"https://api.github.com/users/pdbogen/received_events","type":"User","site_admin":false},"repo":{"id":32233779,"name":"laseramp","full_name":"pdbogen/laseramp","owner":{"login":"pdbogen","id":321591,"avatar_url":"https://avatars.githubusercontent.com/u/321591?v=3","gravatar_id":"","url":"https://api.github.com/users/pdbogen","html_url":"https://github.com/pdbogen","followers_url":"https://api.github.com/users/pdbogen/followers","following_url":"https://api.github.com/users/pdbogen/following{/other_user}","gists_url":"https://api.github.com/users/pdbogen/gists{/gist_id}","starred_url":"https://api.github.com/users/pdbogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdbogen/subscriptions","organizations_url":"https://api.github.com/users/pdbogen/orgs","repos_url":"https://api.github.com/users/pdbogen/repos","events_url":"https://api.github.com/users/pdbogen/events{/privacy}","received_events_url":"https://api.github.com/users/pdbogen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pdbogen/laseramp","description":"GCode-based firmware for cheap Chinese laser engravers","fork":false,"url":"https://api.github.com/repos/pdbogen/laseramp","forks_url":"https://api.github.com/repos/pdbogen/laseramp/forks","keys_url":"https://api.github.com/repos/pdbogen/laseramp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pdbogen/laseramp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pdbogen/laseramp/teams","hooks_url":"https://api.github.com/repos/pdbogen/laseramp/hooks","issue_events_url":"https://api.github.com/repos/pdbogen/laseramp/issues/events{/number}","events_url":"https://api.github.com/repos/pdbogen/laseramp/events","assignees_url":"https://api.github.com/repos/pdbogen/laseramp/assignees{/user}","branches_url":"https://api.github.com/repos/pdbogen/laseramp/branches{/branch}","tags_url":"https://api.github.com/repos/pdbogen/laseramp/tags","blobs_url":"https://api.github.com/repos/pdbogen/laseramp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pdbogen/laseramp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pdbogen/laseramp/git/refs{/sha}","trees_url":"https://api.github.com/repos/pdbogen/laseramp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pdbogen/laseramp/statuses/{sha}","languages_url":"https://api.github.com/repos/pdbogen/laseramp/languages","stargazers_url":"https://api.github.com/repos/pdbogen/laseramp/stargazers","contributors_url":"https://api.github.com/repos/pdbogen/laseramp/contributors","subscribers_url":"https://api.github.com/repos/pdbogen/laseramp/subscribers","subscription_url":"https://api.github.com/repos/pdbogen/laseramp/subscription","commits_url":"https://api.github.com/repos/pdbogen/laseramp/commits{/sha}","git_commits_url":"https://api.github.com/repos/pdbogen/laseramp/git/commits{/sha}","comments_url":"https://api.github.com/repos/pdbogen/laseramp/comments{/number}","issue_comment_url":"https://api.github.com/repos/pdbogen/laseramp/issues/comments{/number}","contents_url":"https://api.github.com/repos/pdbogen/laseramp/contents/{+path}","compare_url":"https://api.github.com/repos/pdbogen/laseramp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pdbogen/laseramp/merges","archive_url":"https://api.github.com/repos/pdbogen/laseramp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pdbogen/laseramp/downloads","issues_url":"https://api.github.com/repos/pdbogen/laseramp/issues{/number}","pulls_url":"https://api.github.com/repos/pdbogen/laseramp/pulls{/number}","milestones_url":"https://api.github.com/repos/pdbogen/laseramp/milestones{/number}","notifications_url":"https://api.github.com/repos/pdbogen/laseramp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pdbogen/laseramp/labels{/name}","releases_url":"https://api.github.com/repos/pdbogen/laseramp/releases{/id}","created_at":"2015-03-14T21:50:25Z","updated_at":"2015-04-14T05:28:19Z","pushed_at":"2015-06-16T16:25:16Z","git_url":"git://github.com/pdbogen/laseramp.git","ssh_url":"git@github.com:pdbogen/laseramp.git","clone_url":"https://github.com/pdbogen/laseramp.git","svn_url":"https://github.com/pdbogen/laseramp","homepage":null,"size":172,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pdbogen/laseramp/pulls/1"},"html":{"href":"https://github.com/pdbogen/laseramp/pull/1"},"issue":{"href":"https://api.github.com/repos/pdbogen/laseramp/issues/1"},"comments":{"href":"https://api.github.com/repos/pdbogen/laseramp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pdbogen/laseramp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pdbogen/laseramp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pdbogen/laseramp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pdbogen/laseramp/statuses/a1e00cec2bdcbc2c688d393d26ef5c738bf64eda"}}}}