{"id":13480886,"url":"https://github.com/androidthings/sample-simpleui","last_synced_at":"2025-03-27T11:31:04.469Z","repository":{"id":97075460,"uuid":"76376243","full_name":"androidthings/sample-simpleui","owner":"androidthings","description":"Connect GPIO states with a graphical UI on Android Things","archived":false,"fork":false,"pushed_at":"2021-05-26T17:55:33.000Z","size":2517,"stargazers_count":120,"open_issues_count":3,"forks_count":55,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-30T14:42:42.656Z","etag":null,"topics":["android-things"],"latest_commit_sha":null,"homepage":"","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/androidthings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2016-12-13T16:14:29.000Z","updated_at":"2023-10-20T17:14:37.000Z","dependencies_parsed_at":"2024-01-14T09:08:51.741Z","dependency_job_id":"8f6b71d1-d847-4f11-a39f-4af204d80a3e","html_url":"https://github.com/androidthings/sample-simpleui","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/androidthings%2Fsample-simpleui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fsample-simpleui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fsample-simpleui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidthings%2Fsample-simpleui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/androidthings","download_url":"https://codeload.github.com/androidthings/sample-simpleui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245836037,"owners_count":20680308,"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"],"created_at":"2024-07-31T17:00:46.231Z","updated_at":"2025-03-27T11:31:04.083Z","avatar_url":"https://github.com/androidthings.png","language":"Java","funding_links":[],"categories":["Useful links"],"sub_categories":["Sample apps and libraries"],"readme":"# Simple Peripheral UI\n\nThis utility exposes the GPIO of an Android Things device as switch widgets in\na graphical UI. You review the state of inputs, and click the switches to control\nthe state of outputs.\n\n\u003e **Note:** The Android Things Console will be turned down for non-commercial\n\u003e use on January 5, 2022. For more details, see the\n\u003e [FAQ page](https://developer.android.com/things/faq).\n\n## Introduction\n\nThis utility shows on the attached display Android [Switch][switch-ref] widgets for each GPIO pin exported by the board.\n\nWhen you click or tap on the switch, the GPIO active status switch from HIGH to LOW according to the widget state.\n\nYou can attach LEDs or other digital output peripheral to your GPIO pins and toggle them on and off without changing a single line of code\n(if you connect LEDs: make sure you add 470 ohms current-limiting resistors in series to avoid damaging them).\n\n## Screenshots\n\n![Simple UI sample demo][demo-gif]\n\n[(Watch the demo on YouTube)][demo-yt]\n\n## Pre-requisites\n\n- Android Things compatible board\n- Display with touch input or external pointing device\n- Android Studio 2.2+\n- LEDs\n- resistors\n- Breadboard\n\n## Build and install\n\nOn Android Studio, click on the \"Run\" button.\n\nIf you prefer to run on the command line, type\n\n```bash\n./gradlew installDebug\nadb shell am start com.example.androidthings.simpleui/.SimpleUiActivity\n```\n\n## License\n\nCopyright 2016 The Android Open Source Project, Inc.\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements.  See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership.  The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License.  You may obtain a copy of\nthe License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n\n[demo-yt]: https://www.youtube.com/watch?v=Fry_yvoDvt4\u0026list=PLWz5rJ2EKKc-GjpNkFe9q3DhE2voJscDT\u0026index=10\n[demo-gif]: demo1.gif\n[switch-ref]: https://developer.android.com/reference/android/widget/Switch.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidthings%2Fsample-simpleui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroidthings%2Fsample-simpleui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidthings%2Fsample-simpleui/lists"}