Skip to content

Commit 877e3df

Browse files
authored
Merge pull request #1041 from OpenBCI/downgrade-processing-3
Downgrade to Processing 3
2 parents ba73e3f + 1c09b4b commit 877e3df

10 files changed

Lines changed: 18 additions & 15 deletions

File tree

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ install:
2929
- mkdir $TRAVIS_BUILD_DIR/temp; cd $TRAVIS_BUILD_DIR/temp
3030

3131
### ### LINUX ### ###
32-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -O -L --insecure https://github.com/processing/processing4/releases/download/processing-1282-4.0b7/processing-4.0b7-linux-x64.tgz ;fi
33-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then tar -xzvf processing-4.0b7-linux-x64.tgz ;fi
34-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export PATH=$TRAVIS_BUILD_DIR/temp/processing-4.0b7:$PATH ;fi
32+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -O -L --insecure https://github.com/processing/processing/releases/download/processing-0269-3.5.3/processing-3.5.3-linux64.tgz ;fi
33+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then tar -xzvf processing-3.5.3-linux64.tgz ;fi
34+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export PATH=$TRAVIS_BUILD_DIR/temp/processing-3.5.3:$PATH ;fi
3535
# copy libraries to linux location
3636
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then mkdir -p $HOME/sketchbook/libraries/ ;fi
3737
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cp -a $TRAVIS_BUILD_DIR/OpenBCI_GUI/libraries/. $HOME/sketchbook/libraries/ ;fi
3838

3939
### ### MAC ### ###
40-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl -O -L --insecure https://github.com/processing/processing4/releases/download/processing-1282-4.0b7/processing-4.0b7-macos-x64.zip ;fi
41-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then unzip processing-4.0b7-macos-x64.zip ;fi
40+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl -O -L --insecure https://github.com/processing/processing/releases/download/processing-0269-3.5.3/processing-3.5.3-macosx.zip ;fi
41+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then unzip processing-3.5.3-macosx.zip ;fi
4242
# Processing.app must be in this location for processing-java to work
4343
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then mv Processing.app /Applications/Processing.app ;fi
4444
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH=$TRAVIS_BUILD_DIR/release_script/mac_only:$PATH ;fi

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
* Fix dropdown backgrounds in Networking Widget
77

88
### Improvements
9-
* Update to Processing 4 #674 #1025
109
* Add new FilterUI to allow custom filters per channel #988
1110
* Add BrainFlow Streamer for File and Network to Control Panel #1007
12-
* Update to BrainFlow v4.9.0 and print version to console log #1028
11+
* Update to BrainFlow v4.9.0+ and print version to console log #1028
1312
* Update OpenBCI Logo #1010
1413
* Clarify Cyton Smoothing feature #1027
1514
* Set Cyton Smoothing on by default and increase communication with a popup and additional Help button #1026

OpenBCI_GUI/FilterUI.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class FilterUIPopup extends PApplet implements Runnable {
402402
}
403403
}
404404

405-
private void createOnOffButton(String name, final String text, int chan, int _x, int _y, int _w, int _h) {
405+
private void createOnOffButton(String name, final String text, final int chan, int _x, int _y, int _w, int _h) {
406406
onOffButtons[chan] = createButton(cp5, name, text, _x, _y, _w, _h, 0, h2, 16, channelColors[chan%8], WHITE, BUTTON_HOVER, BUTTON_PRESSED, (Integer) null, -2);
407407
onOffButtons[chan].setCircularButton(true);
408408
onOffButtons[chan].onRelease(new CallbackListener() {

OpenBCI_GUI/GuiSettings.pde

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ class GuiSettings {
132132
List<String> foundKeys = new ArrayList<String>();
133133
Gson gson = new Gson();
134134
Map<String, Object> map = gson.fromJson(stringToSearch, new TypeToken<Map<String, Object>>() {}.getType());
135-
map.forEach((x, y) -> foundKeys.add(x));
135+
for (String mapKey : map.keySet()) {
136+
foundKeys.add(mapKey);
137+
}
136138

137139
Collections.sort(valueKeys);
138140
Collections.sort(foundKeys);

OpenBCI_GUI/OpenBCI_GUI.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import http.requests.*;
6060
// Global Variables & Instances
6161
//------------------------------------------------------------------------
6262
//Used to check GUI version in TopNav.pde and displayed on the splash screen on startup
63-
String localGUIVersionString = "v5.1.0-alpha.7";
63+
String localGUIVersionString = "v5.1.0-alpha.8";
6464
String localGUIVersionDate = "April 2022";
6565
String guiLatestVersionGithubAPI = "https://api.github.com/repos/OpenBCI/OpenBCI_GUI/releases/latest";
6666
String guiLatestReleaseLocation = "https://github.com/OpenBCI/OpenBCI_GUI/releases/latest";

OpenBCI_GUI/TopNav.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class TopNav {
354354
filtersButton.setDescription("Here you can adjust the Filters that are applied to \"Filtered\" data.");
355355
}
356356

357-
private void createSmoothingButton(String text, int _x, int _y, int _w, int _h, PFont font, int _fontSize, color _bg, color _textColor) {
357+
private void createSmoothingButton(String text, int _x, int _y, int _w, int _h, PFont font, int _fontSize, final color _bg, color _textColor) {
358358
SmoothingCapableBoard smoothBoard = (SmoothingCapableBoard)currentBoard;
359359
color bgColor = smoothBoard.getSmoothingActive() ? _bg : BUTTON_LOCKED_GREY;
360360
smoothingButton = createTNButton("smoothingButton", text, _x, _y, _w, _h, font, _fontSize, bgColor, _textColor);
-1.2 KB
Binary file not shown.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Thank you so much (Danke schön! Merci beaucoup!) for visiting the project and w
9595

9696
Follow the guide to [Run the OpenBCI GUI From Processing IDE][link_gui_run_from_processing]. If you find issues in the guide, please [suggest changes](https://github.com/OpenBCI/Docs/edit/master/OpenBCI%20Software/01-OpenBCI_GUI.md)!
9797

98+
**Please use Processing 3.5.4 or 3.5.3 for all operating systems.**
99+
98100
### System Requirements
99101
#### Hardware
100102
- 1.6 GHz or faster processor

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build: off
2121

2222
init:
2323
# add processing-java to the path as well as mt.exe (release script uses it to modify the manifest.xml)
24-
- cmd: set PATH=%APPVEYOR_BUILD_FOLDER%\temp\processing-4.0b7;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\;%PATH%
24+
- cmd: set PATH=%APPVEYOR_BUILD_FOLDER%\temp\processing-3.5.3;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\;%PATH%
2525

2626
install:
2727
# used for getting commit timestamp
@@ -34,8 +34,8 @@ install:
3434

3535
- mkdir %APPVEYOR_BUILD_FOLDER%\temp
3636
- cd %APPVEYOR_BUILD_FOLDER%\temp
37-
- appveyor DownloadFile https://github.com/processing/processing4/releases/download/processing-1282-4.0b7/processing-4.0b7-windows-x64.zip
38-
- 7z x processing-4.0b7-windows-x64.zip -y -aoa
37+
- appveyor DownloadFile https://github.com/processing/processing/releases/download/processing-0269-3.5.3/processing-3.5.3-windows64.zip
38+
- 7z x processing-3.5.3-windows64.zip -y -aoa
3939
# cp libraries
4040
- mkdir %userprofile%\documents\processing\libraries
4141
- xcopy %APPVEYOR_BUILD_FOLDER%\OpenBCI_GUI\libraries\* %userprofile%\documents\processing\libraries /s /i /q

release_script/mac_only/processing-java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ do
1010
fi
1111
done
1212

13-
cd "/Applications/Processing.app/Contents/Java" && /Applications/Processing.app/Contents/PlugIns/jdk-17.0.2+8/Contents/Home/bin/java -Djna.nosys=true $OPTION_FOR_HEADLESS_RUN -cp "ant.jar:ant-launcher.jar:core.jar:jna.jar:pde.jar:jna-platform.jar:core/library/jogl-all.jar:core/library/gluegen-rt.jar:core/library/core.jar:modes/java/mode/com.ibm.icu.jar:modes/java/mode/org.eclipse.core.contenttype.jar:modes/java/mode/org.eclipse.core.jobs.jar:modes/java/mode/org.eclipse.text.jar:modes/java/mode/org.eclipse.jdt.compiler.apt.jar:modes/java/mode/antlr-4.7.2-complete.jar:modes/java/mode/org.eclipse.core.runtime.jar:modes/java/mode/jdtCompilerAdapter.jar:modes/java/mode/classpath-explorer-1.0.jar:modes/java/mode/org.eclipse.equinox.common.jar:modes/java/mode/org.netbeans.swing.outline.jar:modes/java/mode/org.eclipse.osgi.jar:modes/java/mode/JavaMode.jar:modes/java/mode/jsoup-1.7.1.jar:modes/java/mode/antlr.jar:modes/java/mode/org.eclipse.core.resources.jar:modes/java/mode/org.eclipse.jdt.core.jar:modes/java/mode/org.eclipse.equinox.preferences.jar" processing.mode.java.Commander "$@"
13+
cd "/Applications/Processing.app/Contents/Java" && /Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/bin/java -Djna.nosys=true $OPTION_FOR_HEADLESS_RUN -cp "ant.jar:ant-launcher.jar:core.jar:jna.jar:pde.jar:jna-platform.jar:core/library/gluegen-rt-natives-linux-armv6hf.jar:core/library/jogl-all-natives-linux-armv6hf.jar:core/library/gluegen-rt-natives-linux-aarch64.jar:core/library/jogl-all-natives-linux-aarch64.jar:core/library/gluegen-rt-natives-macosx-universal.jar:core/library/gluegen-rt-natives-linux-amd64.jar:core/library/jogl-all-natives-linux-i586.jar:core/library/gluegen-rt-natives-windows-i586.jar:core/library/jogl-all.jar:core/library/gluegen-rt-natives-linux-i586.jar:core/library/jogl-all-natives-linux-amd64.jar:core/library/gluegen-rt.jar:core/library/core.jar:core/library/jogl-all-natives-macosx-universal.jar:core/library/jogl-all-natives-windows-i586.jar:core/library/gluegen-rt-natives-windows-amd64.jar:core/library/jogl-all-natives-windows-amd64.jar:modes/java/mode/com.ibm.icu.jar:modes/java/mode/org.eclipse.core.contenttype.jar:modes/java/mode/org.eclipse.core.jobs.jar:modes/java/mode/org.eclipse.text.jar:modes/java/mode/org.eclipse.core.runtime.jar:modes/java/mode/jdtCompilerAdapter.jar:modes/java/mode/classpath-explorer-1.0.jar:modes/java/mode/jdi.jar:modes/java/mode/org.eclipse.equinox.common.jar:modes/java/mode/org.netbeans.swing.outline.jar:modes/java/mode/org.eclipse.osgi.jar:modes/java/mode/JavaMode.jar:modes/java/mode/jsoup-1.7.1.jar:modes/java/mode/antlr.jar:modes/java/mode/jdimodel.jar:modes/java/mode/org.eclipse.core.resources.jar:modes/java/mode/org.eclipse.jdt.core.jar:modes/java/mode/org.eclipse.equinox.preferences.jar" processing.mode.java.Commander "$@"

0 commit comments

Comments
 (0)