Skip to content

Commit 3031ce6

Browse files
committed
Fix goRight & goLeft
1 parent 3ecb6bf commit 3031ce6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

webduino-blockly.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,16 @@
297297
};
298298

299299
ToyCar.prototype.goRight = function () {
300-
this._rf.write(1);
300+
this._rf.write(0);
301301
this._rb.write(0);
302-
this._lf.write(0);
302+
this._lf.write(1);
303303
this._lb.write(0);
304304
};
305305

306306
ToyCar.prototype.goLeft = function () {
307-
this._rf.write(0);
307+
this._rf.write(1);
308308
this._rb.write(0);
309-
this._lf.write(1);
309+
this._lf.write(0);
310310
this._lb.write(0);
311311
};
312312

0 commit comments

Comments
 (0)