{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/3997","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/3997/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/3997/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/3997/events","html_url":"https://github.com/arduino/Arduino/pull/3997","id":112037678,"number":3997,"title":"Simplify some examples","user":{"login":"ComputerNerd","id":3759375,"avatar_url":"https://avatars.githubusercontent.com/u/3759375?v=3","gravatar_id":"","url":"https://api.github.com/users/ComputerNerd","html_url":"https://github.com/ComputerNerd","followers_url":"https://api.github.com/users/ComputerNerd/followers","following_url":"https://api.github.com/users/ComputerNerd/following{/other_user}","gists_url":"https://api.github.com/users/ComputerNerd/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputerNerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputerNerd/subscriptions","organizations_url":"https://api.github.com/users/ComputerNerd/orgs","repos_url":"https://api.github.com/users/ComputerNerd/repos","events_url":"https://api.github.com/users/ComputerNerd/events{/privacy}","received_events_url":"https://api.github.com/users/ComputerNerd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-18T19:57:25Z","updated_at":"2015-10-20T09:31:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/arduino/Arduino/pulls/3997","html_url":"https://github.com/arduino/Arduino/pull/3997","diff_url":"https://github.com/arduino/Arduino/pull/3997.diff","patch_url":"https://github.com/arduino/Arduino/pull/3997.patch"},"body":"I noticed that some of the examples could have been written in a more concise way. This made them easier to read and shorter.\r\n\r\nThe general trend that I noticed was this:\r\n```\r\nif(variable==HIGH)\r\n    digitalWrite(pin,HIGH);\r\nelse\r\n   digitalWrite(pin,LOW);\r\n```\r\n\r\nWhy not just do this instead:\r\n```\r\ndigitalWrite(pin,variable);\r\n```\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/149493274","html_url":"https://github.com/arduino/Arduino/pull/3997#issuecomment-149493274","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/3997","id":149493274,"user":{"login":"Avamander","id":5392141,"avatar_url":"https://avatars.githubusercontent.com/u/5392141?v=3","gravatar_id":"","url":"https://api.github.com/users/Avamander","html_url":"https://github.com/Avamander","followers_url":"https://api.github.com/users/Avamander/followers","following_url":"https://api.github.com/users/Avamander/following{/other_user}","gists_url":"https://api.github.com/users/Avamander/gists{/gist_id}","starred_url":"https://api.github.com/users/Avamander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avamander/subscriptions","organizations_url":"https://api.github.com/users/Avamander/orgs","repos_url":"https://api.github.com/users/Avamander/repos","events_url":"https://api.github.com/users/Avamander/events{/privacy}","received_events_url":"https://api.github.com/users/Avamander/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T09:31:05Z","updated_at":"2015-10-20T09:31:05Z","body":"FYI: Not my pull request."}}