{"id":14483343,"url":"https://github.com/HashNuke/Python-Arduino-Prototyping-API","last_synced_at":"2025-08-30T04:30:32.996Z","repository":{"id":643693,"uuid":"285702","full_name":"HashNuke/Python-Arduino-Prototyping-API","owner":"HashNuke","description":"Helps you to quickly prototype Arduino programs, without having to repeatedly load the program to the Arduino board","archived":false,"fork":false,"pushed_at":"2012-06-12T21:08:15.000Z","size":172,"stargazers_count":147,"open_issues_count":6,"forks_count":24,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-21T19:42:10.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/hashnuke/Python-Arduino-Prototyping-API","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HashNuke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-08-23T14:22:04.000Z","updated_at":"2025-04-03T07:12:30.000Z","dependencies_parsed_at":"2022-08-06T10:00:14.403Z","dependency_job_id":null,"html_url":"https://github.com/HashNuke/Python-Arduino-Prototyping-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HashNuke/Python-Arduino-Prototyping-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPython-Arduino-Prototyping-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPython-Arduino-Prototyping-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPython-Arduino-Prototyping-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPython-Arduino-Prototyping-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HashNuke","download_url":"https://codeload.github.com/HashNuke/Python-Arduino-Prototyping-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPython-Arduino-Prototyping-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272805292,"owners_count":24995909,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-09-03T00:01:42.594Z","updated_at":"2025-08-30T04:30:32.753Z","avatar_url":"https://github.com/HashNuke.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Python Arduino Prototyping API (version: 0.5)\n\n\u003e \u0026copy; 2009-2010 Akash Manohar J \u003cakash@akash.im\u003e\n\u003e under the MIT License\n\nThe Python Arduino Prototyping API helps you to quickly prototype Arduino programs, \nwithout having to repeatedly load the program to the Arduino board.\n\n#### Setup:\n\n1. Load prototype.pde onto your Arduino dev board.\n2. Import the arduino lib in your python script.\n\n\n## Methods\n\n*Arduino.output(list_of_output_pins)* - set the output pins\n\n**Digital I/O**\n\n1. *Arduino.setHigh(pin_number)*\n2. *Arduino.setLow(pin_number)*\n3. *Arduino.getState(pin_number)*\n4. *Arduino.getState()* - returns true if pin state is high, else it returns false.\n\n**Analog I/O**\n\n1. *Arduino.analogRead(pin_number)* - returns the analog value\n2. *Arduino.analogWrite(pin_number, value)* - sets the analog value\n\n**Misc**\n\n1.) *Arduino.turnOff()* - sets all the pins to low state\n\n2.) *Arduino.close()* - closes serial connection. Using this makes sure that you won't have to disconnect \u0026 reconnect the Arduino again to recover the serial port.\n\n## Usage example\n\n        #the blink program\n\n        #import the lib\n        from arduino import Arduino\n\n        import time\n\n        #specify the port as an argument\n        my_board = Arduino('/dev/ttyUSB1')\n\n        #declare output pins as a list/tuple\n        my_board.output([11,12,13])\n\n        #perform operations\n        i=0\n        while(i\u003c10):\n            my_board.setHigh(13)\n            time.sleep(1)\n            my_board.setLow(13)\n            time.sleep(1)\n            i+=1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHashNuke%2FPython-Arduino-Prototyping-API","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHashNuke%2FPython-Arduino-Prototyping-API","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHashNuke%2FPython-Arduino-Prototyping-API/lists"}