Title: Trouble with INPUT pin mode · Issue #9 · thearn/Python-Arduino-Command-API · GitHub
Open Graph Title: Trouble with INPUT pin mode · Issue #9 · thearn/Python-Arduino-Command-API
X Title: Trouble with INPUT pin mode · Issue #9 · thearn/Python-Arduino-Command-API
Description: Hi, Before explaining the issue I have with your project, let me express how great I find it ! It is doing exactly what I need, thank you ! However I had some troubles when using a pin mode as "INPUT". For instance when running the follo...
Open Graph Description: Hi, Before explaining the issue I have with your project, let me express how great I find it ! It is doing exactly what I need, thank you ! However I had some troubles when using a pin mode as "INP...
X Description: Hi, Before explaining the issue I have with your project, let me express how great I find it ! It is doing exactly what I need, thank you ! However I had some troubles when using a pin mode as &quo...
Opengraph URL: https://github.com/thearn/Python-Arduino-Command-API/issues/9
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Trouble with INPUT pin mode","articleBody":"Hi,\n\nBefore explaining the issue I have with your project, let me express how great I find it ! It is doing exactly what I need, thank you !\n\nHowever I had some troubles when using a pin mode as \"INPUT\". For instance when running the following simple example : \n\n\u003e from Arduino import Arduino\n\u003e \n\u003e board = Arduino('9600') #plugged in via USB, serial com at rate 9600\n\u003e board.pinMode(5,\"INPUT\")\n\u003e board.close()\n\neverything runs fine. However, if I run this same code a second time I get the following output : \n\n\u003e File \"./TestArduino.py\", line 23, in \u003cmodule\u003e\n\u003e board = Arduino('9600') #plugged in via USB, serial com at rate 9600\n\u003e File \"/usr/local/lib/python2.6/dist-packages/arduino_python-0.2-py2.6.egg/Arduino/arduino.py\", line 106, in **init**\n\u003e raise ValueError(\"Could not find port.\")\n\u003e ValueError: Could not find port.\n\nBut then it works again if I disconnect and reconnect the Arduino. Such an issue is not happening if I replace \"INPUT\" by \"OUTPUT\". The versions of Python and python-serial are respectively 2.6.5 and 2.7.\n\nThe issue I have is then not a major obstacle since I can just reconnect the Arduino board. But I was thinking that you may want to give this a look.\n\nLucas\n## UPDATE : \n\nThis issue is not happening when running with Python 2.7 !\n","author":{"url":"https://github.com/LucasPa","@type":"Person","name":"LucasPa"},"datePublished":"2013-12-19T18:47:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/9/Python-Arduino-Command-API/issues/9"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:81f45e4b-4ed1-d897-3651-6852ab18880c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDEE:12343F:28D2B11:35BE1AD:696B2246 |
| html-safe-nonce | 37b8bd1e135aa90b31e5883dbb649651dda2dc24d5005ee28ff01ef18b1f248f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREVFOjEyMzQzRjoyOEQyQjExOjM1QkUxQUQ6Njk2QjIyNDYiLCJ2aXNpdG9yX2lkIjoiNjcwODc1MzQ5MDk0NDY2NDEzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d0fa7cb9797d8cca912cbfad54375ad7802012b86c67cd962fa57e609e7ffbb4 |
| hovercard-subject-tag | issue:24577119 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/thearn/Python-Arduino-Command-API/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/56aa9b9731e439897688e7566bcbc1ef787a7facb3db071feacbc68bb6725640/thearn/Python-Arduino-Command-API/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/56aa9b9731e439897688e7566bcbc1ef787a7facb3db071feacbc68bb6725640/thearn/Python-Arduino-Command-API/issues/9 |
| og:image:alt | Hi, Before explaining the issue I have with your project, let me express how great I find it ! It is doing exactly what I need, thank you ! However I had some troubles when using a pin mode as "INP... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LucasPa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/thearn/Python-Arduino-Command-API git https://github.com/thearn/Python-Arduino-Command-API.git |
| octolytics-dimension-user_id | 1128468 |
| octolytics-dimension-user_login | thearn |
| octolytics-dimension-repository_id | 5363094 |
| octolytics-dimension-repository_nwo | thearn/Python-Arduino-Command-API |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5363094 |
| octolytics-dimension-repository_network_root_nwo | thearn/Python-Arduino-Command-API |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width