Title: Python equivalent code is acting strange · Issue #21 · thearn/Python-Arduino-Command-API · GitHub
Open Graph Title: Python equivalent code is acting strange · Issue #21 · thearn/Python-Arduino-Command-API
X Title: Python equivalent code is acting strange · Issue #21 · thearn/Python-Arduino-Command-API
Description: I am trying to implement one of the starter circuits using your library. This simple Arduino code, causes the LED to light up brightly and blink accordingly (everything seems correct): void loop() { digitalWrite(13, HIGH); delay(1000); d...
Open Graph Description: I am trying to implement one of the starter circuits using your library. This simple Arduino code, causes the LED to light up brightly and blink accordingly (everything seems correct): void loop() ...
X Description: I am trying to implement one of the starter circuits using your library. This simple Arduino code, causes the LED to light up brightly and blink accordingly (everything seems correct): void loop() ...
Opengraph URL: https://github.com/thearn/Python-Arduino-Command-API/issues/21
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python equivalent code is acting strange","articleBody":"I am trying to implement one of the starter circuits using your library. This simple Arduino code, causes the LED to light up brightly and blink accordingly (everything seems correct):\n\n```\nvoid loop() { \n digitalWrite(13, HIGH);\n delay(1000);\n digitalWrite(13, LOW); \n delay(1000); \n}\n```\n\nBut this Python code, causes the LED to blink correctly, but is very dim with the exact same circuit:\n\n``` python\nfrom Arduino import Arduino\nimport time\n\nboard = Arduino('9600') #plugged in via USB, serial com at rate 9600\nboard.pinMode(13, \"OUTPUT\")\n\nwhile True:\n board.digitalWrite(13, \"LOW\")\n time.sleep(1)\n board.digitalWrite(13, \"HIGH\")\n time.sleep(1)\n```\n\nAny ideas what could cause this?\n","author":{"url":"https://github.com/dvreed77","@type":"Person","name":"dvreed77"},"datePublished":"2014-12-27T03:46:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/21/Python-Arduino-Command-API/issues/21"}
| 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:ec3164ce-0b9e-920b-1eb2-67dca8d2e5bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C506:1CEAED:1A47168:22B50D7:696AF075 |
| html-safe-nonce | 2ba24d3a90b9e01d390028a47f13b97f61c77bbbecede1051fbdec1c305dc500 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTA2OjFDRUFFRDoxQTQ3MTY4OjIyQjUwRDc6Njk2QUYwNzUiLCJ2aXNpdG9yX2lkIjoiNTY5NDgxOTM5MTQ4NDEyOTM5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f974deca8198ad52bfbe8ac5a5c359246959e1cac139ec95c3759fc513e0ea45 |
| hovercard-subject-tag | issue:52947228 |
| 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/21/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d14dfd7c8933168d22c85c62defbf565385d99092b42d78dde402ed192140d08/thearn/Python-Arduino-Command-API/issues/21 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d14dfd7c8933168d22c85c62defbf565385d99092b42d78dde402ed192140d08/thearn/Python-Arduino-Command-API/issues/21 |
| og:image:alt | I am trying to implement one of the starter circuits using your library. This simple Arduino code, causes the LED to light up brightly and blink accordingly (everything seems correct): void loop() ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dvreed77 |
| 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