{"id":15713984,"url":"https://github.com/hashnuke/java-arduino-prototyping-api","last_synced_at":"2025-10-27T21:17:22.138Z","repository":{"id":661233,"uuid":"304159","full_name":"HashNuke/Java-Arduino-Prototyping-API","owner":"HashNuke","description":"Java Arduino API to prototype arduino based apps in java","archived":false,"fork":false,"pushed_at":"2010-05-01T02:19:06.000Z","size":341,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-05T21:58:39.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HashNuke.png","metadata":{"files":{"readme":"readme.textile","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-09-11T15:31:20.000Z","updated_at":"2014-05-30T16:03:36.000Z","dependencies_parsed_at":"2022-08-16T10:35:22.338Z","dependency_job_id":null,"html_url":"https://github.com/HashNuke/Java-Arduino-Prototyping-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FJava-Arduino-Prototyping-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FJava-Arduino-Prototyping-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FJava-Arduino-Prototyping-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FJava-Arduino-Prototyping-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HashNuke","download_url":"https://codeload.github.com/HashNuke/Java-Arduino-Prototyping-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246367165,"owners_count":20765833,"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","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-10-03T21:34:25.315Z","updated_at":"2025-10-27T21:17:22.075Z","avatar_url":"https://github.com/HashNuke.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. Java Arduino Prototyping API (version: 0.1, windows-only)\n\nThe Java Arduino Prototyping API helps you to quickly prototype Arduino programs, \nwithout having to repeatedly load the program to the Arduino board.\n\n*Setup:*\n1.) Load prototype.pde onto your Arduino dev board.\n2.) Read instructions on how to compile and run Java programs on the Arduino wiki here:\n\t\"http://www.arduino.cc/playground/Interfacing/Java\":http://www.arduino.cc/playground/Interfacing/Java\n3.) Copy the \"im\" dir to the \"libs\" dir in your Arduino IDE's directory.\n4.) Import the arduino pkg in your java program.\n\n-----------------------------------------------------\nh2. Methods\n\nArduino.output(list_of_output_pins)\n\nDigital I/O functions:\n1.) @Arduino.setHigh(pin_number)@\n2.) @Arduino.setLow(pin_number)@\n3.) @Arduino.getState(pin_number)@\n    @getState()@ returns true if pin state is high, else it returns false.\n\nAnalog I/O functions (currently not supported):\n1.) @Arduino.analogRead(pin_number)@\n    returns the analog value\n2.) @Arduino.analogRead(pin_number, value)@\n    sets the analog value\n\nMisc functions (currently not supported):\n1.) @Arduino.turnOff()@\n    sets all the pins to low state\n2.) @Arduino.close()@\n    closes serial connection. Using this makes sure that you won't have\n    to disconnect \u0026 reconnect the Arduino again to recover the serial port.\n\n-----------------------------------------------------\nh2. Example usage\n\n\n\n//import the lib\nimport im.akash.arduino.Arduino;\n\npublic class TestMyArduino {\n  \n  public static void main(String[] args) throws Exception{\r\n        \n\t/***\n\t\tyou have to have your code in an exceptions block.\n\t\tto know more about this,\n\t\tread the Arduino wiki page on Interfacing with Java\n\t\twhich is linked to above in this readme\r\n        ***/\n       \r\n\t//the port on which the arduino is connected to is set via your Arduino IDE.\n\tArduino my_board = Arduino()\r\n        \n\tint i =0;\r\n        int[] pins = {13};\r\n\t\n\t//declare output pins        \n\tmy_board.output(pins);\r\n     \r\n\t//set digital high        \n\tmy_board.setHigh(13);\n\n\t//get digital state\r\n        my_board.getState(13);\n\t\n\t//set digital low\n\tmy_board.setLow(13);\t\n\r\n\t}\r\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashnuke%2Fjava-arduino-prototyping-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashnuke%2Fjava-arduino-prototyping-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashnuke%2Fjava-arduino-prototyping-api/lists"}