742429d1
pfrison
VRGNYMusicLight b...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* TODO list :
* - keyboard listener for animation player (play / pause = space, forward = semicolon, backward = comma, stop = backspace)
*/
public class Main {
public static void main(String[] args) throws InterruptedException {
/* FIXME interface testing in progress
String serialPort = null;
try {
serialPort = SerialPortChooserDialog.showSerialPortChooserDialog();
} catch (NoSerialPortException e) {
JOptionPane.showMessageDialog(null, "No serial port available !", "Error", JOptionPane.ERROR_MESSAGE);
System.exit(-1);
}
if(serialPort == null) System.exit(-1);
final SerialCom serialCom = new SerialCom(serialPort);
// arduino need time before accepting serial data
Thread.sleep(1000);*/
Interface i = new Interface(new Runnable() {
@Override
public void run() {
//serialCom.close();
}
});
i.setVisible(true);
}
}
|