{"id":13481039,"url":"https://github.com/blundell/PirMotionSensorModuleTut","last_synced_at":"2025-03-27T11:31:35.563Z","repository":{"id":146560172,"uuid":"80158093","full_name":"blundell/PirMotionSensorModuleTut","owner":"blundell","description":"Android Things - PirSensor Tutorial","archived":false,"fork":false,"pushed_at":"2018-03-13T20:37:38.000Z","size":89,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-15T17:47:15.154Z","etag":null,"topics":["android-things","iot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blundell.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-26T21:37:56.000Z","updated_at":"2022-02-22T12:37:35.000Z","dependencies_parsed_at":"2024-01-14T09:09:38.021Z","dependency_job_id":"6d36b1a9-8bef-4982-8cf3-22407d33aed0","html_url":"https://github.com/blundell/PirMotionSensorModuleTut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FPirMotionSensorModuleTut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FPirMotionSensorModuleTut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FPirMotionSensorModuleTut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FPirMotionSensorModuleTut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blundell","download_url":"https://codeload.github.com/blundell/PirMotionSensorModuleTut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222239500,"owners_count":16953961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-things","iot"],"created_at":"2024-07-31T17:00:47.977Z","updated_at":"2024-10-30T14:31:14.533Z","avatar_url":"https://github.com/blundell.png","language":"Java","readme":"### HC-SR501\n#### PIR Motion Sensor\n##### Android Things User Driver\n\n\nAccompanying Blog Post:\n\nhttp://blog.blundellapps.co.uk/tut-android-things-writing-a-pir-motion-sensor-driver/\n\nSimple useage:\n\n```java\n\n   @Override\n   protected void onCreate() {\n        Gpio bus =  bus = new PeripheralManagerService().openGpio(\"BCM18\");\n        motionSensor = new PirMotionSensor(bus, this);\n        motionSensor.startup();\n   }\n\n    @Override\n    public void onMovement() {\n        Log.d(\"TUT\", \"MOVEMENT DETECTED\");\n    }\n\n    @Override\n    protected void onDestroy() {\n        motionSensor.shutdown();\n        super.onDestroy();\n    }\n\n\n```\n","funding_links":[],"categories":["Useful links"],"sub_categories":["Drivers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblundell%2FPirMotionSensorModuleTut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblundell%2FPirMotionSensorModuleTut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblundell%2FPirMotionSensorModuleTut/lists"}