We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi I am using the processing IDE to connect with a arduino UNO by using this button and a drop down menu. OK so the button's function is to connect to whatever comm port the user chooses from the drop down menu. The button has text that says "Connect", while the drop down menu will be populated by the COM ports on my computer when the arrow for the menu is click.
So basically, you click the drop down menu select the comm port you want to connect to then, hit connect button. Now once the connection is successful, the connect button, will change its text from "connect" to "disconnect" , and when that is pressed it will disconnect from the arudino. Please help me with the code since I am not sure where to start? I have good c++ experience so I am not new to programming.
Answers
How much experience do you have with Processing? Can you connect to the Arduino unit? For GUI elements-buttons, textBoxes,sliders,etc., there are two libraries, G4P and controlP5. They can both be installed from Processing IDE's library manager. Just click Add library in the menu. Then you can check the examples provided by the libraries.
You can also check previous posts: https://forum.processing.org/two/search?Search=slider
http://www.sojamo.de/libraries/controlP5/
http://www.lagers.org.uk/g4p/
Kf