Closed pelikhan closed 5 years ago
the LEGO firmware is inconsistent w.r.t. to polarity support. Implement support in typescript instead.
brick.buttonEnter.onEvent(ButtonEvent.Pressed, function () { motors.stopAll() }) brick.buttonLeft.onEvent(ButtonEvent.Pressed, function () { motors.largeB.setInverted(false) motors.largeB.run(50) }) brick.buttonUp.onEvent(ButtonEvent.Pressed, function () { motors.largeBC.setInverted(false) motors.largeBC.run(50) pause(1000) motors.largeBC.steer(0, 50) }) brick.buttonRight.onEvent(ButtonEvent.Pressed, function () { motors.largeB.setInverted(true) motors.largeB.run(50) }) brick.buttonDown.onEvent(ButtonEvent.Pressed, function () { motors.largeBC.setInverted(true) motors.largeBC.run(50) pause(1000) motors.largeBC.steer(0, 50) })
the LEGO firmware is inconsistent w.r.t. to polarity support. Implement support in typescript instead.