2017-12-18 22:04:17 +01:00
|
|
|
|
|
|
|
namespace pxsim.motors {
|
|
|
|
|
|
|
|
export function __motorUsed(port: number, large: boolean) {
|
2017-12-28 18:07:57 +01:00
|
|
|
//console.log("MOTOR INIT " + port);
|
|
|
|
ev3board().motorUsed(port, large);
|
2017-12-18 22:04:17 +01:00
|
|
|
runtime.queueDisplayUpdate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace pxsim.sensors {
|
|
|
|
|
|
|
|
export function __sensorUsed(port: number, type: number) {
|
2017-12-28 18:07:57 +01:00
|
|
|
//console.log("SENSOR INIT " + port + ", type: " + type);
|
2017-12-18 22:04:17 +01:00
|
|
|
const sensor = ev3board().getSensor(port, type);
|
|
|
|
runtime.queueDisplayUpdate();
|
|
|
|
}
|
|
|
|
}
|