-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jarduino blink loop start with an button #40
Comments
In your code change it to btnAutotest.addActionListener(new ActionListener() {
this will of course only run loop once. Jan-Ole |
Ok but now the complete program because of the System.exit(0) in the void methode.
} |
Just remove the System.Exit statement. When the code reaches the end, it On Tue, Nov 17, 2015 at 2:07 PM, frickerm [email protected] wrote:
Jan-Ole |
but it don´t work it will be jump up on the top of the methode loop() here ist the code Gui
Auto_Test_Folge public class Auto_Test_Folge extends JArduino {
// if (args.length == 1) {
|
Hi
i have got some problems..
i downloaded the JArduino file and installed all.
the blink example and the others work.
My problem is
I want to connect the blink example with an Java -GUI
I build the gui and a button. with this button i want to start the loop methode in the blink example (in my projekt calls Auto_Test_Folge)
but an error : change Auto_Test_Folge.loop() to an static methode.
if i change this it dont works
heare the Source code
GUI
Auto_test_Folge
import org.sintef.jarduino.DigitalPin;
import org.sintef.jarduino.DigitalState;
import org.sintef.jarduino.JArduino;
import org.sintef.jarduino.PinMode;
import org.sintef.jarduino.comm.Serial4JArduino;
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
public class Auto_Test_Folge extends JArduino {
The text was updated successfully, but these errors were encountered: