File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import processing.serial.* ;
2
2
3
3
4
- class MyoEMG {
4
+ class LibMyoStream {
5
5
private Bluetooth bt;
6
6
7
7
// 128 bit string that identifies a BLE device as a Myo Armband. This ID is
@@ -26,11 +26,11 @@ class MyoEMG {
26
26
private Sample bufferedSample;
27
27
28
28
29
- public MyoEMG (PApplet mainApp ) throws MyoNotDetectectedError {
29
+ public LibMyoStream (PApplet mainApp ) throws MyoNotDetectectedError {
30
30
this (mainApp, null );
31
31
}
32
32
33
- public MyoEMG (PApplet mainApp , String serialPort ) throws MyoNotDetectectedError {
33
+ public LibMyoStream (PApplet mainApp , String serialPort ) throws MyoNotDetectectedError {
34
34
bt = new Bluetooth (mainApp, serialPort, MYO_ID );
35
35
bt. connect();
36
36
Original file line number Diff line number Diff line change 1
- MyoEMG myoEmg ;
1
+ LibMyoStream myoStream ;
2
2
3
3
void setup () {
4
4
try {
5
- myoEmg = new MyoEMG (this );
5
+ myoStream = new LibMyoStream (this );
6
6
} catch (MyoNotDetectectedError e) {
7
7
println (" [Error] Myo armband not detected, exiting." );
8
8
System . exit(1 );
9
9
}
10
10
11
11
while (true )
12
- prettyPrint(myoEmg . readSample());
12
+ prettyPrint(myoStream . readSample());
13
13
}
14
14
15
15
You can’t perform that action at this time.
0 commit comments