{"id":13481014,"url":"https://github.com/cagdasc/AndroidThings-ADXL345","last_synced_at":"2025-03-27T11:31:26.994Z","repository":{"id":72055106,"uuid":"77175857","full_name":"cagdasc/AndroidThings-ADXL345","owner":"cagdasc","description":"ADXL345 3-axis accelerometer AndroidThings device driver","archived":false,"fork":false,"pushed_at":"2018-05-08T14:27:45.000Z","size":15530,"stargazers_count":7,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T14:42:59.472Z","etag":null,"topics":["android-library","android-things","androidthings","driver","embedded","i2c","i2c-sensors"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cagdasc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-12-22T21:06:28.000Z","updated_at":"2020-12-08T02:59:28.000Z","dependencies_parsed_at":"2023-06-19T13:04:47.904Z","dependency_job_id":null,"html_url":"https://github.com/cagdasc/AndroidThings-ADXL345","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/cagdasc%2FAndroidThings-ADXL345","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagdasc%2FAndroidThings-ADXL345/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagdasc%2FAndroidThings-ADXL345/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagdasc%2FAndroidThings-ADXL345/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cagdasc","download_url":"https://codeload.github.com/cagdasc/AndroidThings-ADXL345/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245836136,"owners_count":20680328,"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-library","android-things","androidthings","driver","embedded","i2c","i2c-sensors"],"created_at":"2024-07-31T17:00:47.651Z","updated_at":"2025-03-27T11:31:26.542Z","avatar_url":"https://github.com/cagdasc.png","language":"Java","funding_links":[],"categories":["Useful links"],"sub_categories":["Drivers"],"readme":"# AndroidThings-ADXL345\nADXL345 3-axis accelerometer AndroidThings device driver.\n\n\\*Note this is a maintained fork of this project adding support for Android Things DP6 and DP7.\n\n### Usage\n1- Simple usage with create an object and call methods.\n```java\n        String bus = \"device_specific_bus\";\n        ADXL345 adxl345 = null;\n        try {\n            adxl345 = new ADXL345(bus);\n\n            Log.i(TAG + \" Accel X\", String.valueOf(adxl345.getAccelerationX()));\n            Log.i(TAG + \" Accel Y\", String.valueOf(adxl345.getAccelerationY()));\n            Log.i(TAG + \" Accel Z\", String.valueOf(adxl345.getAccelerationZ()));\n        } catch (IOException e) {\n            e.printStackTrace();\n        } finally {\n            try {\n                if (adxl345 != null) adxl345.close();\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n        }\n```\n\n2- There is a sample in this repo like [androidthings](https://github.com/androidthings/drivers-samples) driver samples.\n\n###First Impression\n![first_imp](first_imp.png)\n![first_imp_out](first_imp_out2.png)\n\nLicense\n-------\n\n      Copyright 2016 Cagdas Caglak\n\n      Licensed under the Apache License, Version 2.0 (the \"License\");\n      you may not use this file except in compliance with the License.\n      You may obtain a copy of the License at\n\n      http://www.apache.org/licenses/LICENSE-2.0\n\n      Unless required by applicable law or agreed to in writing, software\n      distributed under the License is distributed on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n      See the License for the specific language governing permissions and\n      limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcagdasc%2FAndroidThings-ADXL345","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcagdasc%2FAndroidThings-ADXL345","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcagdasc%2FAndroidThings-ADXL345/lists"}