MCPcopy
hub / github.com/arduino/Arduino / selectBoard

Method selectBoard

arduino-core/src/processing/app/BaseNoGui.java:919–930  ·  view source on GitHub ↗
(TargetBoard targetBoard)

Source from the content-addressed store, hash-verified

917 }
918
919 static public void selectBoard(TargetBoard targetBoard) {
920 TargetPlatform targetPlatform = targetBoard.getContainerPlatform();
921 TargetPackage targetPackage = targetPlatform.getContainerPackage();
922
923 PreferencesData.set("target_package", targetPackage.getId());
924 PreferencesData.set("target_platform", targetPlatform.getId());
925 PreferencesData.set("board", targetBoard.getId());
926
927 File platformFolder = targetPlatform.getFolder();
928 PreferencesData.set("runtime.platform.path", platformFolder.getAbsolutePath());
929 PreferencesData.set("runtime.hardware.path", platformFolder.getParentFile().getAbsolutePath());
930 }
931
932 public static void selectSerialPort(String port) {
933 PreferencesData.set("serial.port", port);

Callers 3

processBoardArgumentMethod · 0.95
BaseMethod · 0.95
actionPerformedMethod · 0.95

Calls 7

getContainerPackageMethod · 0.95
setMethod · 0.95
getIdMethod · 0.95
getIdMethod · 0.95
getFolderMethod · 0.95
getContainerPlatformMethod · 0.65
getIdMethod · 0.65

Tested by

no test coverage detected