Skip to content

Commit cfcb6fe

Browse files
committed
Renamed project files for library-style convention.
1 parent 2df8007 commit cfcb6fe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

MyoEMG.pde LibMyoStream.pde

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import processing.serial.*;
22

33

4-
class MyoEMG {
4+
class LibMyoStream {
55
private Bluetooth bt;
66

77
// 128 bit string that identifies a BLE device as a Myo Armband. This ID is
@@ -26,11 +26,11 @@ class MyoEMG {
2626
private Sample bufferedSample;
2727

2828

29-
public MyoEMG(PApplet mainApp) throws MyoNotDetectectedError {
29+
public LibMyoStream(PApplet mainApp) throws MyoNotDetectectedError {
3030
this(mainApp, null);
3131
}
3232

33-
public MyoEMG(PApplet mainApp, String serialPort) throws MyoNotDetectectedError {
33+
public LibMyoStream(PApplet mainApp, String serialPort) throws MyoNotDetectectedError {
3434
bt = new Bluetooth(mainApp, serialPort, MYO_ID);
3535
bt.connect();
3636

MyoStreamer.pde MyoStream.pde

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
MyoEMG myoEmg;
1+
LibMyoStream myoStream;
22

33
void setup() {
44
try {
5-
myoEmg = new MyoEMG(this);
5+
myoStream = new LibMyoStream(this);
66
} catch (MyoNotDetectectedError e) {
77
println("[Error] Myo armband not detected, exiting.");
88
System.exit(1);
99
}
1010

1111
while (true)
12-
prettyPrint(myoEmg.readSample());
12+
prettyPrint(myoStream.readSample());
1313
}
1414

1515

0 commit comments

Comments
 (0)