{"action":"created","comment":{"url":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/comments/118677934","pull_request_review_id":40490272,"id":118677934,"diff_hunk":"@@ -450,6 +450,45 @@ void ICACHE_FLASH_ATTR IRsend::sendDenon (unsigned long data,  int nbits) {\n   ledOff();\n }\n \n+// Gree, from https://github.com/ToniA/arduino-heatpumpir/blob/master/GreeHeatpumpIR.cpp\n+void ICACHE_FLASH_ATTR IRsend::sendGree(unsigned char data[]) {\n+\n+  uint8_t i = 0;\n+\n+  // Set IR carrier frequency\n+  enableIROut(38);\n+\n+  // Header #1\n+  mark(GREE_HDR_MARK);\n+  space(GREE_HDR_SPACE);\n+\n+  // Data #1\n+  for (; i < 4; i++)\n+    sendData(GREE_BIT_MARK, GREE_ONE_SPACE, GREE_BIT_MARK, GREE_ZERO_SPACE,\n+             data[i], 8, false);\n+\n+  // Footer #2 (010)\n+  mark(GREE_BIT_MARK);","path":"IRremoteESP8266.cpp","position":22,"original_position":22,"commit_id":"0cb7319e141ca53466c050a3b0f9897bd49373d2","original_commit_id":"0cb7319e141ca53466c050a3b0f9897bd49373d2","user":{"login":"crankyoldgit","id":12723980,"avatar_url":"https://avatars3.githubusercontent.com/u/12723980?v=3","gravatar_id":"","url":"https://api.github.com/users/crankyoldgit","html_url":"https://github.com/crankyoldgit","followers_url":"https://api.github.com/users/crankyoldgit/followers","following_url":"https://api.github.com/users/crankyoldgit/following{/other_user}","gists_url":"https://api.github.com/users/crankyoldgit/gists{/gist_id}","starred_url":"https://api.github.com/users/crankyoldgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crankyoldgit/subscriptions","organizations_url":"https://api.github.com/users/crankyoldgit/orgs","repos_url":"https://api.github.com/users/crankyoldgit/repos","events_url":"https://api.github.com/users/crankyoldgit/events{/privacy}","received_events_url":"https://api.github.com/users/crankyoldgit/received_events","type":"User","site_admin":false},"body":"You could replace this Footer section with:\r\n`sendData(GREE_BIT_MARK, GREE_ONE_SPACE, GREE_BIT_MARK, GREE_ZERO_SPACE, 0x2, 3);`\r\n","created_at":"2017-05-26T10:46:38Z","updated_at":"2017-05-26T10:55:49Z","html_url":"https://github.com/markszabo/IRremoteESP8266/pull/226#discussion_r118677934","pull_request_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226","_links":{"self":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/comments/118677934"},"html":{"href":"https://github.com/markszabo/IRremoteESP8266/pull/226#discussion_r118677934"},"pull_request":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226"}}},"pull_request":{"url":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226","id":122602686,"html_url":"https://github.com/markszabo/IRremoteESP8266/pull/226","diff_url":"https://github.com/markszabo/IRremoteESP8266/pull/226.diff","patch_url":"https://github.com/markszabo/IRremoteESP8266/pull/226.patch","issue_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/issues/226","number":226,"state":"open","locked":false,"title":"Add Gree send support","user":{"login":"scop","id":109152,"avatar_url":"https://avatars2.githubusercontent.com/u/109152?v=3","gravatar_id":"","url":"https://api.github.com/users/scop","html_url":"https://github.com/scop","followers_url":"https://api.github.com/users/scop/followers","following_url":"https://api.github.com/users/scop/following{/other_user}","gists_url":"https://api.github.com/users/scop/gists{/gist_id}","starred_url":"https://api.github.com/users/scop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scop/subscriptions","organizations_url":"https://api.github.com/users/scop/orgs","repos_url":"https://api.github.com/users/scop/repos","events_url":"https://api.github.com/users/scop/events{/privacy}","received_events_url":"https://api.github.com/users/scop/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-26T09:16:02Z","updated_at":"2017-05-26T10:55:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5eb197f86a731dd180f6ef9d1a41bc97ba4329ed","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226/commits","review_comments_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226/comments","review_comment_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/comments{/number}","comments_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/issues/226/comments","statuses_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/statuses/0cb7319e141ca53466c050a3b0f9897bd49373d2","head":{"label":"scop:gree","ref":"gree","sha":"0cb7319e141ca53466c050a3b0f9897bd49373d2","user":{"login":"scop","id":109152,"avatar_url":"https://avatars2.githubusercontent.com/u/109152?v=3","gravatar_id":"","url":"https://api.github.com/users/scop","html_url":"https://github.com/scop","followers_url":"https://api.github.com/users/scop/followers","following_url":"https://api.github.com/users/scop/following{/other_user}","gists_url":"https://api.github.com/users/scop/gists{/gist_id}","starred_url":"https://api.github.com/users/scop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scop/subscriptions","organizations_url":"https://api.github.com/users/scop/orgs","repos_url":"https://api.github.com/users/scop/repos","events_url":"https://api.github.com/users/scop/events{/privacy}","received_events_url":"https://api.github.com/users/scop/received_events","type":"User","site_admin":false},"repo":{"id":89145141,"name":"IRremoteESP8266","full_name":"scop/IRremoteESP8266","owner":{"login":"scop","id":109152,"avatar_url":"https://avatars2.githubusercontent.com/u/109152?v=3","gravatar_id":"","url":"https://api.github.com/users/scop","html_url":"https://github.com/scop","followers_url":"https://api.github.com/users/scop/followers","following_url":"https://api.github.com/users/scop/following{/other_user}","gists_url":"https://api.github.com/users/scop/gists{/gist_id}","starred_url":"https://api.github.com/users/scop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scop/subscriptions","organizations_url":"https://api.github.com/users/scop/orgs","repos_url":"https://api.github.com/users/scop/repos","events_url":"https://api.github.com/users/scop/events{/privacy}","received_events_url":"https://api.github.com/users/scop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scop/IRremoteESP8266","description":"Infrared remote library for ESP8266: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/","fork":true,"url":"https://api.github.com/repos/scop/IRremoteESP8266","forks_url":"https://api.github.com/repos/scop/IRremoteESP8266/forks","keys_url":"https://api.github.com/repos/scop/IRremoteESP8266/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scop/IRremoteESP8266/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scop/IRremoteESP8266/teams","hooks_url":"https://api.github.com/repos/scop/IRremoteESP8266/hooks","issue_events_url":"https://api.github.com/repos/scop/IRremoteESP8266/issues/events{/number}","events_url":"https://api.github.com/repos/scop/IRremoteESP8266/events","assignees_url":"https://api.github.com/repos/scop/IRremoteESP8266/assignees{/user}","branches_url":"https://api.github.com/repos/scop/IRremoteESP8266/branches{/branch}","tags_url":"https://api.github.com/repos/scop/IRremoteESP8266/tags","blobs_url":"https://api.github.com/repos/scop/IRremoteESP8266/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scop/IRremoteESP8266/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scop/IRremoteESP8266/git/refs{/sha}","trees_url":"https://api.github.com/repos/scop/IRremoteESP8266/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scop/IRremoteESP8266/statuses/{sha}","languages_url":"https://api.github.com/repos/scop/IRremoteESP8266/languages","stargazers_url":"https://api.github.com/repos/scop/IRremoteESP8266/stargazers","contributors_url":"https://api.github.com/repos/scop/IRremoteESP8266/contributors","subscribers_url":"https://api.github.com/repos/scop/IRremoteESP8266/subscribers","subscription_url":"https://api.github.com/repos/scop/IRremoteESP8266/subscription","commits_url":"https://api.github.com/repos/scop/IRremoteESP8266/commits{/sha}","git_commits_url":"https://api.github.com/repos/scop/IRremoteESP8266/git/commits{/sha}","comments_url":"https://api.github.com/repos/scop/IRremoteESP8266/comments{/number}","issue_comment_url":"https://api.github.com/repos/scop/IRremoteESP8266/issues/comments{/number}","contents_url":"https://api.github.com/repos/scop/IRremoteESP8266/contents/{+path}","compare_url":"https://api.github.com/repos/scop/IRremoteESP8266/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scop/IRremoteESP8266/merges","archive_url":"https://api.github.com/repos/scop/IRremoteESP8266/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scop/IRremoteESP8266/downloads","issues_url":"https://api.github.com/repos/scop/IRremoteESP8266/issues{/number}","pulls_url":"https://api.github.com/repos/scop/IRremoteESP8266/pulls{/number}","milestones_url":"https://api.github.com/repos/scop/IRremoteESP8266/milestones{/number}","notifications_url":"https://api.github.com/repos/scop/IRremoteESP8266/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scop/IRremoteESP8266/labels{/name}","releases_url":"https://api.github.com/repos/scop/IRremoteESP8266/releases{/id}","deployments_url":"https://api.github.com/repos/scop/IRremoteESP8266/deployments","created_at":"2017-04-23T13:47:38Z","updated_at":"2017-04-23T13:47:39Z","pushed_at":"2017-05-26T10:40:11Z","git_url":"git://github.com/scop/IRremoteESP8266.git","ssh_url":"git@github.com:scop/IRremoteESP8266.git","clone_url":"https://github.com/scop/IRremoteESP8266.git","svn_url":"https://github.com/scop/IRremoteESP8266","homepage":null,"size":307,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"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":"markszabo:master","ref":"master","sha":"f1262071a12fd27eefd07cde57278a4124cb515d","user":{"login":"markszabo","id":12611720,"avatar_url":"https://avatars2.githubusercontent.com/u/12611720?v=3","gravatar_id":"","url":"https://api.github.com/users/markszabo","html_url":"https://github.com/markszabo","followers_url":"https://api.github.com/users/markszabo/followers","following_url":"https://api.github.com/users/markszabo/following{/other_user}","gists_url":"https://api.github.com/users/markszabo/gists{/gist_id}","starred_url":"https://api.github.com/users/markszabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markszabo/subscriptions","organizations_url":"https://api.github.com/users/markszabo/orgs","repos_url":"https://api.github.com/users/markszabo/repos","events_url":"https://api.github.com/users/markszabo/events{/privacy}","received_events_url":"https://api.github.com/users/markszabo/received_events","type":"User","site_admin":false},"repo":{"id":37022659,"name":"IRremoteESP8266","full_name":"markszabo/IRremoteESP8266","owner":{"login":"markszabo","id":12611720,"avatar_url":"https://avatars2.githubusercontent.com/u/12611720?v=3","gravatar_id":"","url":"https://api.github.com/users/markszabo","html_url":"https://github.com/markszabo","followers_url":"https://api.github.com/users/markszabo/followers","following_url":"https://api.github.com/users/markszabo/following{/other_user}","gists_url":"https://api.github.com/users/markszabo/gists{/gist_id}","starred_url":"https://api.github.com/users/markszabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markszabo/subscriptions","organizations_url":"https://api.github.com/users/markszabo/orgs","repos_url":"https://api.github.com/users/markszabo/repos","events_url":"https://api.github.com/users/markszabo/events{/privacy}","received_events_url":"https://api.github.com/users/markszabo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markszabo/IRremoteESP8266","description":"Infrared remote library for ESP8266: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/","fork":false,"url":"https://api.github.com/repos/markszabo/IRremoteESP8266","forks_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/forks","keys_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/teams","hooks_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/hooks","issue_events_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/issues/events{/number}","events_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/events","assignees_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/assignees{/user}","branches_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/branches{/branch}","tags_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/tags","blobs_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/git/refs{/sha}","trees_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/statuses/{sha}","languages_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/languages","stargazers_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/stargazers","contributors_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/contributors","subscribers_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/subscribers","subscription_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/subscription","commits_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/commits{/sha}","git_commits_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/git/commits{/sha}","comments_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/comments{/number}","issue_comment_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/issues/comments{/number}","contents_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/contents/{+path}","compare_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/merges","archive_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/downloads","issues_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/issues{/number}","pulls_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls{/number}","milestones_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/milestones{/number}","notifications_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/labels{/name}","releases_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/releases{/id}","deployments_url":"https://api.github.com/repos/markszabo/IRremoteESP8266/deployments","created_at":"2015-06-07T16:04:25Z","updated_at":"2017-05-24T12:55:09Z","pushed_at":"2017-05-26T10:40:11Z","git_url":"git://github.com/markszabo/IRremoteESP8266.git","ssh_url":"git@github.com:markszabo/IRremoteESP8266.git","clone_url":"https://github.com/markszabo/IRremoteESP8266.git","svn_url":"https://github.com/markszabo/IRremoteESP8266","homepage":null,"size":562,"stargazers_count":334,"watchers_count":334,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":18,"forks":112,"open_issues":18,"watchers":334,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226"},"html":{"href":"https://github.com/markszabo/IRremoteESP8266/pull/226"},"issue":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/issues/226"},"comments":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/issues/226/comments"},"review_comments":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226/comments"},"review_comment":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/pulls/226/commits"},"statuses":{"href":"https://api.github.com/repos/markszabo/IRremoteESP8266/statuses/0cb7319e141ca53466c050a3b0f9897bd49373d2"}}}}
{"actor":{"display_login":"crankyoldgit"}}