loading board definition from pxtarget.json

This commit is contained in:
Peli de Halleux
2016-09-13 15:32:12 -07:00
parent e59ae37954
commit 167c1d8fce
5 changed files with 94 additions and 63 deletions

View File

@ -615,6 +615,9 @@ ${tsPackage}
});
}
// board def
const boardDef = JSON.parse(getQsVal("board")) as pxsim.BoardDefinition;
//parts list
let parts = (getQsVal("parts") || "").split(" ");
parts.sort();
@ -638,7 +641,6 @@ ${tsPackage}
style.textContent += STYLE;
const boardDef = CURRENT_BOARD;
const cmpDefs = partDefinitions;
//props