{"action":"opened","issue":{"url":"https://api.github.com/repos/yagizorhan/arduino/issues/8","repository_url":"https://api.github.com/repos/yagizorhan/arduino","labels_url":"https://api.github.com/repos/yagizorhan/arduino/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/yagizorhan/arduino/issues/8/comments","events_url":"https://api.github.com/repos/yagizorhan/arduino/issues/8/events","html_url":"https://github.com/yagizorhan/arduino/issues/8","id":152488238,"number":8,"title":"PIR_Sensoru","user":{"login":"yagizorhan","id":16868930,"avatar_url":"https://avatars.githubusercontent.com/u/16868930?v=3","gravatar_id":"","url":"https://api.github.com/users/yagizorhan","html_url":"https://github.com/yagizorhan","followers_url":"https://api.github.com/users/yagizorhan/followers","following_url":"https://api.github.com/users/yagizorhan/following{/other_user}","gists_url":"https://api.github.com/users/yagizorhan/gists{/gist_id}","starred_url":"https://api.github.com/users/yagizorhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yagizorhan/subscriptions","organizations_url":"https://api.github.com/users/yagizorhan/orgs","repos_url":"https://api.github.com/users/yagizorhan/repos","events_url":"https://api.github.com/users/yagizorhan/events{/privacy}","received_events_url":"https://api.github.com/users/yagizorhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-02T06:16:07Z","updated_at":"2016-05-02T06:16:07Z","closed_at":null,"body":"const int led = 13;\r\nconst int pirPin = 2;\r\nint pirDeger;\r\n\r\nvoid setup() {\r\n  pinMode(pirPin, INPUT);\r\n  pinMode(led, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n\r\n  pirDeger = digitalRead(pirPin);\r\n  if (pirDeger == HIGH)  // hareket algılandığında\r\n  {\r\n    digitalWrite(led, HIGH);\r\n  }\r\n  if (pirDeger == LOW) // hareket algılanmadığında\r\n  {\r\n    digitalWrite(led, LOW);\r\n  }\r\n}\r\n"}}