Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit 479e968

Browse files
committed
toycar blocks support webduino smart
1 parent fed25fa commit 479e968

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webduino-blockly.js

+4
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,13 @@
265265

266266
function ToyCar(board, RF, RB, LF, LB) {
267267
this._rf = getPin(board, RF);
268+
this._rf.setMode(1);
268269
this._rb = getPin(board, RB);
270+
this._rb.setMode(1);
269271
this._lf = getPin(board, LF);
272+
this._lf.setMode(1);
270273
this._lb = getPin(board, LB);
274+
this._lb.setMode(1);
271275
}
272276

273277
ToyCar.prototype.goFront = function () {

0 commit comments

Comments
 (0)