Skip to content

Commit 319cf36

Browse files
author
jantje
committed
Added CapacitiveSensor to the default installed libraries
I did so to get the examples junit to work for 2 cases from the arduino starters box
1 parent 298a0bf commit 319cf36

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

io.sloeber.core/src/io/sloeber/core/api/Defaults.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@
88
@SuppressWarnings("nls")
99
public class Defaults {
1010

11-
public static final String LIBRARIES_URL = "http://downloads.arduino.cc/libraries/library_index.json";
12-
public static final String EXAMPLE_PACKAGE = "examples_Arduino_1_6_7.zip";
13-
public static final String EXAMPLES_URL = "http://eclipse.baeyens.it/download/" + EXAMPLE_PACKAGE;
14-
public static final String PLATFORM_NAME = "Arduino AVR Boards";
15-
public static final String[] INSTALLED_LIBRARIES = new String[] { "Ethernet", "Firmata", "GSM", "Keyboard",
16-
"LiquidCrystal", "Mouse", "SD", "Servo", "Stepper", "TFT", "WiFi" };
17-
private static final String DEFAULT = "Default";
11+
public static final String LIBRARIES_URL = "http://downloads.arduino.cc/libraries/library_index.json";
12+
public static final String EXAMPLE_PACKAGE = "examples_Arduino_1_6_7.zip";
13+
public static final String EXAMPLES_URL = "http://eclipse.baeyens.it/download/" + EXAMPLE_PACKAGE;
14+
public static final String PLATFORM_NAME = "Arduino AVR Boards";
15+
public static final String[] INSTALLED_LIBRARIES = new String[] { "Ethernet", "Firmata", "GSM", "Keyboard",
16+
"LiquidCrystal", "Mouse", "SD", "Servo", "Stepper", "TFT", "WiFi", "CapacitiveSensor" };
17+
private static final String DEFAULT = "Default";
1818

19-
/**
20-
* Arduino has the default libraries in the user home directory in subfolder
21-
* Arduino/libraries. As the home directory is platform dependent getting
22-
* the value is resolved by this method
23-
*
24-
* @return the folder where Arduino puts the libraries by default.
25-
*/
26-
public static String getPrivateLibraryPath() {
27-
IPath homPath = new Path(System.getProperty("user.home"));
28-
return homPath.append("Arduino").append(Const.LIBRARY_PATH_SUFFIX).toString();
29-
}
19+
/**
20+
* Arduino has the default libraries in the user home directory in subfolder
21+
* Arduino/libraries. As the home directory is platform dependent getting
22+
* the value is resolved by this method
23+
*
24+
* @return the folder where Arduino puts the libraries by default.
25+
*/
26+
public static String getPrivateLibraryPath() {
27+
IPath homPath = new Path(System.getProperty("user.home"));
28+
return homPath.append("Arduino").append(Const.LIBRARY_PATH_SUFFIX).toString();
29+
}
3030

31-
public static String getPrivateHardwarePath() {
32-
IPath homPath = new Path(System.getProperty("user.home"));
33-
return homPath.append("Arduino").append(Const.ARDUINO_HARDWARE_FOLDER_NAME).toString();
34-
}
31+
public static String getPrivateHardwarePath() {
32+
IPath homPath = new Path(System.getProperty("user.home"));
33+
return homPath.append("Arduino").append(Const.ARDUINO_HARDWARE_FOLDER_NAME).toString();
34+
}
3535

36-
public static String getDefaultUploadProtocol() {
37-
return DEFAULT;
38-
}
36+
public static String getDefaultUploadProtocol() {
37+
return DEFAULT;
38+
}
3939
}

0 commit comments

Comments
 (0)