Title: GitHub · Where software is built
Open Graph Title: thearn/Python-Arduino-Command-API
X Title: thearn/Python-Arduino-Command-API
Description: A Python library for communicating with Arduino microcontroller boards - thearn/Python-Arduino-Command-API
Open Graph Description: A Python library for communicating with Arduino microcontroller boards - thearn/Python-Arduino-Command-API
X Description: A Python library for communicating with Arduino microcontroller boards - thearn/Python-Arduino-Command-API
Opengraph URL: https://github.com/thearn/Python-Arduino-Command-API
X: @github
Domain: patch-diff.githubusercontent.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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:9f1a9099-a56f-e92a-d53f-f77d036f0f9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAB4:2D1CC6:B55FC9:ECB2F4:69717077 |
| html-safe-nonce | 4aafcc10061b3601d1bd7b66e6fbf65f7d6bf6208ee9ef819092770dde375819 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUI0OjJEMUNDNjpCNTVGQzk6RUNCMkY0OjY5NzE3MDc3IiwidmlzaXRvcl9pZCI6Ijg0NTY5NDAxMTU0MDQ2MTU3OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4893f2146b65d6dc039e0822ba09cd37943adff622c4ef6471acdc1949187b79 |
| hovercard-subject-tag | repository:5363094 |
| 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/thearn/Python-Arduino-Command-API/issues/21 |
| twitter:image | https://opengraph.githubassets.com/149982b0f6199e165498fbbc044fd867dee6acf747d2fe1a217e158fb1e16985/thearn/Python-Arduino-Command-API |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/149982b0f6199e165498fbbc044fd867dee6acf747d2fe1a217e158fb1e16985/thearn/Python-Arduino-Command-API |
| og:image:alt | A Python library for communicating with Arduino microcontroller boards - thearn/Python-Arduino-Command-API |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 353479110ec1e87d687013548f216c852055ec907d09d2fb6a180cb5ed9d28e1 |
| turbo-cache-control | no-cache |
| 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 | a4c7e274c03a115b82dcef6c47ce3f7f903e88e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width