8000 Learn-Robotics-Programming/chapter8 at python3 · PacktPublishing/Learn-Robotics-Programming · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"chapter8","repo":{"id":137051352,"defaultBranch":"master","name":"Learn-Robotics-Programming","ownerLogin":"PacktPublishing","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2018-06-12T09:48:35.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/10974906?v=4","public":true,"private":false,"isOrgOwned":true},"currentUser":null,"refInfo":{"name":"python3","listCacheKey":"v0:1626042720.810682","canEdit":false,"refType":"branch","currentOid":"46d5d0d65364d38043515c6b0c700291e775f0ba"},"tree":{"items":[{"name":"line_following_behavior.py","path":"chapter8/line_following_behavior.py","contentType":"file"},{"name":"readme.md","path":"chapter8/readme.md","contentType":"file"},{"name":"robot.py","path":"chapter8/robot.py","contentType":"file"},{"name":"stop_at_line.py","path":"chapter8/stop_at_line.py","contentType":"file"},{"name":"test_line_sensor.py","path":"chapter8/test_line_sensor.py","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"readme.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSetup\u003c/h1\u003e\u003ca id=\"user-content-setup\" class=\"anchor\" aria-label=\"Permalink: Setup\" href=\"#setup\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCurrently GPIOZero release 1.4.1 does not have the pull_up=True option for the LineSensor object.\nWhen 1.5 is available, this will be present.\nUntil then the master branch can be used, on the Pi type:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"pi@myrobot:~ $ pip install git+https://github.com/RPi-Distro/python-gpiozero.git\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003epi@myrobot:~ $ pip install git+https://github.com/RPi-Distro/python-gpiozero.git\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you use gpiozero 1.4.1, you are likely to see errors about the pull_up argument not existing.\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Setup","anchor":"setup","htmlText":"Setup"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FPacktPublishing%2FLearn-Robotics-Programming%2Ftree%2Fpython3%2Fchapter8"}},"totalCount":5,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"chapter10","path":"chapter10","contentType":"directory"},{"name":"chapter11","path":"chapter11","contentType":"directory"},{"name":"chapter12","path":"chapter12","contentType":"directory"},{"name":"chapter13","path":"chapter13","contentType":"directory"},{"name":"chapter14","path":"chapter14","contentType":"directory"},{"name":"chapter15","path":"chapter15","contentType":"directory"},{"name":"chapter4","path":"chapter4","contentType":"directory"},{"name":"chapter5","path":"chapter5","contentType":"directory"},{"name":"chapter7","path":"chapter7","contentType":"directory"},{"name":"chapter8","path":"chapter8","contentType":"directory"},{"name":"chapter9","path":"chapter9","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".pylintrc","path":".pylintrc","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":15}},"fileTreeProcessingTime":1.545496,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/PacktPublishing/Learn-Robotics-Programming/branches":{"post":"3_SFdpYL60BjVcTW95RgtvcAVyvA5u_23TIOSznlRPyirgVE5s84nDcj7zCps_FwrhxsXKGtYMi5-rPXsN2rsw"},"/PacktPublishing/Learn-Robotics-Programming/branches/fetch_and_merge/python3":{"post":"frr6PLGlCM4XrgDuQu3m2wrUNfXwx2EGKMpUsb2pp3vk7gf8KG8q-LMTZ2-vv40mi6YoOceQzOSKrXs_KvAXkw"},"/PacktPublishing/Learn-Robotics-Programming/branches/fetch_and_merge/python3?discard_changes=true":{"post":"7Zp5klYYdXceoFmqcbNGu_gWZO8XrMMF7C2oKGp7Sd53zoRSz9JXQbodPiuc4S1GeWR5IyD7budOSoem_SL5Ng"}}},"title":"Learn-Robotics-Programming/chapter8 at python3 · PacktPublishing/Learn-Robotics-Programming","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0