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

@ -92,10 +92,9 @@ namespace pxsim {
const options = (msg.options || {}) as RuntimeOptions;
const boardDef = CURRENT_BOARD; //TODO: read from pxt.json/pxttarget.json
const boardDef = msg.boardDefinition;
const cmpsList = msg.parts;
const cmpDefs = msg.partDefinitions || {}; //TODO: read from pxt.json/pxttarget.json
const cmpDefs = msg.partDefinitions || {};
const fnArgs = msg.fnArgs;
const opts : visuals.BoardHostOpts = {